[Python-checkins] python/dist/src/Lib/distutils msvccompiler.py, 1.64.2.3, 1.64.2.4

loewis@users.sourceforge.net loewis at users.sourceforge.net
Sun Aug 7 22:50:39 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20948/Lib/distutils

Modified Files:
      Tag: release24-maint
	msvccompiler.py 
Log Message:
Patch #827386: Support absolute source paths in msvccompiler.py.


Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.64.2.3
retrieving revision 1.64.2.4
diff -u -d -r1.64.2.3 -r1.64.2.4
--- msvccompiler.py	11 Mar 2005 17:20:41 -0000	1.64.2.3
+++ msvccompiler.py	7 Aug 2005 20:50:37 -0000	1.64.2.4
@@ -270,6 +270,8 @@
         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



More information about the Python-checkins mailing list