summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2014-10-02 00:10:06 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2014-10-02 00:10:06 (GMT)
commit0d377b371d8ec8bd538ed7325000e815d02cb03b (patch)
tree1c53fbf2fb10bee9de5e604872b7117766155d13
parent92518cc7e3c29a3f763aa258d4191a3a8a4c4500 (diff)
downloadcpython-0d377b371d8ec8bd538ed7325000e815d02cb03b.zip
cpython-0d377b371d8ec8bd538ed7325000e815d02cb03b.tar.gz
cpython-0d377b371d8ec8bd538ed7325000e815d02cb03b.tar.bz2
- Issue #17219: Add library build dir for Python extension cross-builds.
-rw-r--r--Lib/distutils/command/build_ext.py2
-rw-r--r--Misc/NEWS2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index f0a7d4c..2ab73aa 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -235,7 +235,7 @@ class build_ext (Command):
# Python's library directory must be appended to library_dirs
# See Issues: #1600860, #4366
if (sysconfig.get_config_var('Py_ENABLE_SHARED')):
- if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
+ if not sysconfig.python_build:
# building third party extensions
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
else:
diff --git a/Misc/NEWS b/Misc/NEWS
index 2158e68..5adf6a9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -244,6 +244,8 @@ Build
- Issue #18096: Fix library order returned by python-config.
+- Issue #17219: Add library build dir for Python extension cross-builds.
+
Windows
-------