]> granicus.if.org Git - python/commitdiff
Added support for new Windows build dirs in PC/ to distutils.sysconfig
authorChristian Heimes <christian@cheimes.de>
Tue, 1 Jan 2008 14:37:32 +0000 (14:37 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 1 Jan 2008 14:37:32 +0000 (14:37 +0000)
Lib/distutils/sysconfig.py

index 32b165ffd119d9ef0dda0faadf42a3dedb1e5dee..3cd647becc11b719fb70fff0668a261636ac0b7f 100644 (file)
@@ -27,6 +27,10 @@ EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
 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