From: doko@ubuntu.com Date: Thu, 2 Oct 2014 00:10:47 +0000 (+0200) Subject: - Issue #17219: Add library build dir for Python extension cross-builds. X-Git-Tag: v3.4.3rc1~576 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b;p=thirdparty%2FPython%2Fcpython.git - Issue #17219: Add library build dir for Python extension cross-builds. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 3ab2d04bf98a..acbe648036fc 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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: diff --git a/Misc/NEWS b/Misc/NEWS index ffb852f27476..8602e8d7bfd1 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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? ===========================