From 7e6c2e2cc49fa109662d3f04f4c3553596d31937 Mon Sep 17 00:00:00 2001 From: "doko@ubuntu.com" Date: Sat, 30 Jun 2012 22:35:00 +0200 Subject: - 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. --- Lib/sysconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/sysconfig.py') diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index eccd3041a4..4f0a9a920c 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"): -- cgit v1.2.1