Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/util.py @ 77886:cfbe51e66749
- Issue #14330: For cross builds, don't use host python, use host search paths
for host compiler.
| author | doko@ubuntu.com |
|---|---|
| date | Sat, 30 Jun 2012 20:42:45 +0200 |
| parents | 147ad02875fa |
| children | d76b83803e7e |
line wrap: on
line diff
--- a/Lib/distutils/util.py Sat Jun 30 19:28:16 2012 +0200 +++ b/Lib/distutils/util.py Sat Jun 30 20:42:45 2012 +0200 @@ -53,6 +53,10 @@ return 'win-ia64' return sys.platform + # Set for cross builds explicitly + if "_PYTHON_HOST_PLATFORM" in os.environ: + return os.environ["_PYTHON_HOST_PLATFORM"] + if os.name != "posix" or not hasattr(os, 'uname'): # XXX what about the architecture? NT is Intel or Alpha, # Mac OS is M68k or PPC, etc.
