Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cef3bdc

Browse files
committed
- Issue #17219: Add library build dir for Python extension cross-builds.
1 parent d486c43 commit cef3bdc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def finalize_options(self):
237237
# Python's library directory must be appended to library_dirs
238238
# See Issues: #1600860, #4366
239239
if (sysconfig.get_config_var('Py_ENABLE_SHARED')):
240-
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
240+
if not sysconfig.python_build:
241241
# building third party extensions
242242
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
243243
else:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Build
4040

4141
- Issue #18096: Fix library order returned by python-config.
4242

43+
- Issue #17219: Add library build dir for Python extension cross-builds.
44+
4345

4446
What's New in Python 3.4.2?
4547
===========================

0 commit comments

Comments
 (0)