Commit 0d377b37 authored by doko@ubuntu.com's avatar doko@ubuntu.com

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

parent 92518cc7
...@@ -235,7 +235,7 @@ class build_ext (Command): ...@@ -235,7 +235,7 @@ class build_ext (Command):
# Python's library directory must be appended to library_dirs # Python's library directory must be appended to library_dirs
# See Issues: #1600860, #4366 # See Issues: #1600860, #4366
if (sysconfig.get_config_var('Py_ENABLE_SHARED')): 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 # building third party extensions
self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
else: else:
......
...@@ -244,6 +244,8 @@ Build ...@@ -244,6 +244,8 @@ Build
- Issue #18096: Fix library order returned by python-config. - Issue #18096: Fix library order returned by python-config.
- Issue #17219: Add library build dir for Python extension cross-builds.
Windows Windows
------- -------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment