diff options
author | doko <doko@ubuntu.com> | 2012-06-30 20:42:45 +0200 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2012-06-30 20:42:45 +0200 |
commit | 60133f57eec8aa8cd0e323ec55753d9f6c5c7f9b (patch) | |
tree | b4b1dde0a15033711c486d82a12c50d22151638c /Lib/distutils/util.py | |
parent | 2abf3e2564b06eb0629c8349fdc96504c9949c1e (diff) | |
download | cpython-60133f57eec8aa8cd0e323ec55753d9f6c5c7f9b.tar.gz |
- Issue #14330: For cross builds, don't use host python, use host search paths
for host compiler.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r-- | Lib/distutils/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index bce840274d..9833bf95c0 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -53,6 +53,10 @@ def get_platform (): 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. |