Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b6bcc3 + cef3bdc commit 9816619Copy full SHA for 9816619
2 files changed
Lib/distutils/command/build_ext.py
@@ -244,7 +244,7 @@ def finalize_options(self):
244
# Python's library directory must be appended to library_dirs
245
# See Issues: #1600860, #4366
246
if (sysconfig.get_config_var('Py_ENABLE_SHARED')):
247
- if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
+ if not sysconfig.python_build:
248
# building third party extensions
249
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
250
else:
Misc/NEWS
@@ -1060,6 +1060,8 @@ Build
1060
1061
- Issue #18096: Fix library order returned by python-config.
1062
1063
+- Issue #17219: Add library build dir for Python extension cross-builds.
1064
+
1065
C API
1066
-----
1067
0 commit comments