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

This commit is contained in:
doko@ubuntu.com 2014-10-02 02:10:47 +02:00
parent d486c43d8d
commit cef3bdc01d
2 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,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

@ -40,6 +40,8 @@ Build
- Issue #18096: Fix library order returned by python-config.
- Issue #17219: Add library build dir for Python extension cross-builds.
What's New in Python 3.4.2?
===========================