Patch #827386: Support absolute source paths in msvccompiler.py.

Backported to 2.4.
This commit is contained in:
Martin v. Löwis 2005-08-07 20:51:04 +00:00
parent bc841a1464
commit b813c53cd8
2 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,8 @@ class MSVCCompiler (CCompiler) :
obj_names = []
for src_name in source_filenames:
(base, ext) = os.path.splitext (src_name)
base = os.path.splitdrive(base)[1] # Chop off the drive
base = base[os.path.isabs(base):] # If abs, chop off leading /
if ext not in self.src_extensions:
# Better to raise an exception instead of silently continuing
# and later complain about sources and targets having

View File

@ -178,6 +178,8 @@ Extension Modules
Library
-------
- Patch #827386: Support absolute source paths in msvccompiler.py.
- Patch #1105730: Apply the new implementation of commonprefix in posixpath
to ntpath, macpath, os2emxpath and riscospath.