- Issue #14330: For cross builds, don't use host python, use host search paths

for host compiler.
This commit is contained in:
doko@ubuntu.com 2012-06-30 20:42:45 +02:00
parent b457b9be4d
commit 1abe1c5fe1
6 changed files with 200 additions and 27 deletions

View file

@ -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.