summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 19:36:12 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 19:36:12 (GMT)
commit42211426eb9771424b9e5153d12f8c2c0c538d34 (patch)
tree3b4e48b2a151ddf75d0c350e4acb6e26e4dcbab6 /Lib/distutils
parent072b1e1485e50b3698c9147ef6dd5b657c100978 (diff)
downloadcpython-42211426eb9771424b9e5153d12f8c2c0c538d34.zip
cpython-42211426eb9771424b9e5153d12f8c2c0c538d34.tar.gz
cpython-42211426eb9771424b9e5153d12f8c2c0c538d34.tar.bz2
Addressed some buildbot errors and comments on the checkin by Antoine on python-dev.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/sysconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 977962f..59315f7 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -47,7 +47,8 @@ def _is_python_source_dir(d):
return True
return False
_sys_home = getattr(sys, '_home', None)
-if _sys_home and os.name == 'nt' and _sys_home.lower().endswith('pcbuild'):
+if _sys_home and os.name == 'nt' and \
+ _sys_home.lower().endswith(('pcbuild', 'pcbuild\\amd64')):
_sys_home = os.path.dirname(_sys_home)
def _python_build():
if _sys_home: