diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-01 14:37:32 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-01 14:37:32 (GMT) |
commit | 9a1d8cec111707699375668eb2068e5ce3759b21 (patch) | |
tree | ef2ff73f639f6505daa415eeadd82743264bcf72 /Lib/distutils | |
parent | e1c6af06ec79e8b603ba154da5eb1e47ea2e0d43 (diff) | |
download | cpython-9a1d8cec111707699375668eb2068e5ce3759b21.zip cpython-9a1d8cec111707699375668eb2068e5ce3759b21.tar.gz cpython-9a1d8cec111707699375668eb2068e5ce3759b21.tar.bz2 |
Added support for new Windows build dirs in PC/ to distutils.sysconfig
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/sysconfig.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 32b165f..3cd647b 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -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 |