diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 20:51:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 20:51:04 (GMT) |
commit | b813c53cd892a8de90b0ed172e8964b3e61124df (patch) | |
tree | 44e232fbf6fb49c6211955219cceddc2ed830512 | |
parent | bc841a1464b53ddbaa989e4cae97024fbe111abf (diff) | |
download | cpython-b813c53cd892a8de90b0ed172e8964b3e61124df.zip cpython-b813c53cd892a8de90b0ed172e8964b3e61124df.tar.gz cpython-b813c53cd892a8de90b0ed172e8964b3e61124df.tar.bz2 |
Patch #827386: Support absolute source paths in msvccompiler.py.
Backported to 2.4.
-rw-r--r-- | Lib/distutils/msvccompiler.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index b94d35f..85d515b 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -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 @@ -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. |