[Python-checkins] python/dist/src/Lib/distutils msvccompiler.py, 1.68, 1.69
loewis@users.sourceforge.net
loewis at users.sourceforge.net
Sun Aug 7 22:51:07 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21005/Lib/distutils
Modified Files:
msvccompiler.py
Log Message:
Patch #827386: Support absolute source paths in msvccompiler.py.
Backported to 2.4.
Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- msvccompiler.py 12 Mar 2005 19:05:58 -0000 1.68
+++ msvccompiler.py 7 Aug 2005 20:51:04 -0000 1.69
@@ -269,6 +269,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