summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2012-06-30 20:35:00 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2012-06-30 20:35:00 (GMT)
commit7e6c2e2cc49fa109662d3f04f4c3553596d31937 (patch)
tree4509cf98a5f44afdbab2b01128cacaffd4d95f61 /Lib/sysconfig.py
parent1abe1c5fe13ca64c54e16db25de7c4dd5578a7c1 (diff)
downloadcpython-7e6c2e2cc49fa109662d3f04f4c3553596d31937.zip
cpython-7e6c2e2cc49fa109662d3f04f4c3553596d31937.tar.gz
cpython-7e6c2e2cc49fa109662d3f04f4c3553596d31937.tar.bz2
- Issue #14330: For cross builds, don't use host python, use host search paths
for host compiler. Add NEWS entry, rename _PROJECT_BASE to _PYTHON_PROJECT_BASE.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index eccd304..4f0a9a9 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -139,8 +139,8 @@ if os.name == "nt" and "\\pcbuild\\amd64" in _PROJECT_BASE[-14:].lower():
_PROJECT_BASE = _safe_realpath(os.path.join(_PROJECT_BASE, pardir, pardir))
# set for cross builds
-if "_PROJECT_BASE" in os.environ:
- _PROJECT_BASE = _safe_realpath(os.environ["_PROJECT_BASE"])
+if "_PYTHON_PROJECT_BASE" in os.environ:
+ _PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"])
def _is_python_source_dir(d):
for fn in ("Setup.dist", "Setup.local"):