summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordoko@python.org <doko@python.org>2013-01-25 13:33:33 (GMT)
committerdoko@python.org <doko@python.org>2013-01-25 13:33:33 (GMT)
commit9731330d6f4d63d6d57c8e99c8d11ef1def42858 (patch)
tree1ed8606901ef598959dc27593b4fb10e1d14c60c /configure
parent0c77bf757f94945b9e11a3d1f44ee47466866fd0 (diff)
downloadcpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.zip
cpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.tar.gz
cpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.tar.bz2
- Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
use _PYTHON_PROJECT_BASE in distutils/sysconfig.py.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 1f56376..df2d5b5 100755
--- a/configure
+++ b/configure
@@ -2942,7 +2942,7 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
$as_echo "$interp" >&6; }
- PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=$srcdir"' _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp
+ PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp
fi
elif test "$cross_compiling" = maybe; then
as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5