aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordoko@python.org <doko@python.org>2013-01-25 14:33:33 +0100
committerdoko@python.org <doko@python.org>2013-01-25 14:33:33 +0100
commit9731330d6f4d63d6d57c8e99c8d11ef1def42858 (patch)
tree1ed8606901ef598959dc27593b4fb10e1d14c60c /configure
parent- Issue #17029: Let h2py search the multiarch system include directory. (diff)
downloadcpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.tar.gz
cpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.tar.bz2
cpython-9731330d6f4d63d6d57c8e99c8d11ef1def42858.zip
- 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 1f56376275d..df2d5b5a220 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