[Python-checkins] cpython (2.7): - Issue #17219: Add library build dir for Python extension cross-builds.
matthias.klose
python-checkins at python.org
Thu Oct 2 02:12:49 CEST 2014
https://hg.python.org/cpython/rev/222e0faa5fa9
changeset: 92732:222e0faa5fa9
branch: 2.7
parent: 92729:6316475af62d
user: doko at ubuntu.com
date: Thu Oct 02 02:10:06 2014 +0200
summary:
- Issue #17219: Add library build dir for Python extension cross-builds.
files:
Lib/distutils/command/build_ext.py | 2 +-
Misc/NEWS | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -235,7 +235,7 @@
# 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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -244,6 +244,8 @@
- Issue #18096: Fix library order returned by python-config.
+- Issue #17219: Add library build dir for Python extension cross-builds.
+
Windows
-------
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list