summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-27 16:30:09 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-27 16:30:09 (GMT)
commit7e203498d1d90e943bc322b82a2e9a8e50da25c6 (patch)
tree40c6fd14cee307b195a991d638fd0620eda47efe /Lib/sysconfig.py
parent0b43bcf5287d9494e3332b391350fcd32fe93f2c (diff)
downloadcpython-7e203498d1d90e943bc322b82a2e9a8e50da25c6.zip
cpython-7e203498d1d90e943bc322b82a2e9a8e50da25c6.tar.gz
cpython-7e203498d1d90e943bc322b82a2e9a8e50da25c6.tar.bz2
Fixed _sys_home computation and added diagnostics for Windows buildbot failures.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 7350efb..ac1e751 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -107,7 +107,8 @@ _sys_home = getattr(sys, '_home', None)
if _sys_home and os.name == 'nt' and \
_sys_home.lower().endswith(('pcbuild', 'pcbuild\\amd64')):
_sys_home = os.path.dirname(_sys_home)
-
+ if _sys_home.endswith('pcbuild'): # must be amd64
+ _sys_home = os.path.dirname(_sys_home)
def is_python_build(check_home=False):
if check_home and _sys_home:
return _is_python_source_dir(_sys_home)