summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2014-10-02 00:10:47 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2014-10-02 00:10:47 (GMT)
commitcef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b (patch)
treee6de492ed24ed460a2a1083169c114b1880fbc84 /Lib/distutils
parentd486c43d8d5ddf6d8c31e37fa5525aac7b960059 (diff)
downloadcpython-cef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b.zip
cpython-cef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b.tar.gz
cpython-cef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b.tar.bz2
- Issue #17219: Add library build dir for Python extension cross-builds.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 3ab2d04..acbe648 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: