- Issue #17219: Add library build dir for Python extension cross-builds.

This commit is contained in:
doko@ubuntu.com 2014-10-02 02:12:34 +02:00
commit 9816619c5b
2 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,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:

View File

@ -1060,6 +1060,8 @@ Build
- Issue #18096: Fix library order returned by python-config.
- Issue #17219: Add library build dir for Python extension cross-builds.
C API
-----