mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fixed _sys_home computation and added diagnostics for Windows buildbot failures.
This commit is contained in:
parent
0b43bcf528
commit
7e203498d1
3 changed files with 8 additions and 2 deletions
|
@ -50,6 +50,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 _python_build():
|
||||
if _sys_home:
|
||||
return _is_python_source_dir(_sys_home)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue