[Python-checkins] r59641 - python/trunk/Lib/distutils/sysconfig.py

christian.heimes python-checkins at python.org
Tue Jan 1 15:37:32 CET 2008


Author: christian.heimes
Date: Tue Jan  1 15:37:32 2008
New Revision: 59641

Modified:
   python/trunk/Lib/distutils/sysconfig.py
Log:
Added support for new Windows build dirs in PC/ to distutils.sysconfig

Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py	(original)
+++ python/trunk/Lib/distutils/sysconfig.py	Tue Jan  1 15:37:32 2008
@@ -27,6 +27,10 @@
 project_base = os.path.dirname(os.path.abspath(sys.executable))
 if os.name == "nt" and "pcbuild" in project_base[-8:].lower():
     project_base = os.path.abspath(os.path.join(project_base, os.path.pardir))
+# PC/VS7.1
+if os.name == "nt" and "\\pc\\v" in project_base[-10:].lower():
+    project_base = os.path.abspath(os.path.join(project_base, os.path.pardir,
+                                                os.path.pardir))
 
 # python_build: (Boolean) if true, we're either building Python or
 # building an extension with an un-installed Python, so we use


More information about the Python-checkins mailing list