]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #827386: Support absolute source paths in msvccompiler.py.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 7 Aug 2005 20:50:37 +0000 (20:50 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 7 Aug 2005 20:50:37 +0000 (20:50 +0000)
Lib/distutils/msvccompiler.py
Misc/NEWS

index 7f0844f0bff2982b8bb225a41a5c13a790e398e4..9758dd6c356d5b5515a84f60e5c7cd6a33098ea8 100644 (file)
@@ -270,6 +270,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
index 1e32eb4f36a01f2709d513a15c8c6a57ec059d59..0e6c3b8a0fe834bc564fa4661bead678d9e64afd 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -53,6 +53,8 @@ Extension Modules
 Library
 -------
 
+- Patch #827386: Support absolute source paths in msvccompiler.py.
+
 - Fix a problem in Tkinter introduced by SF patch #869468: delete bogus
   __hasattr__ and __delattr__ methods on class Tk that were breaking
   Tkdnd.