From 8cd0bada8471fae5bc504392ef4ea5fc31097cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 7 Aug 2005 20:50:37 +0000 Subject: Patch #827386: Support absolute source paths in msvccompiler.py. --- Lib/distutils/msvccompiler.py | 2 ++ Misc/NEWS | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 7f0844f..9758dd6 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -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 diff --git a/Misc/NEWS b/Misc/NEWS index 1e32eb4..0e6c3b8 100644 --- 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. -- cgit v0.12