diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2014-10-02 00:12:34 (GMT) |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2014-10-02 00:12:34 (GMT) |
commit | 9816619c5b4b267b1a60ccda898ab2b4d6e9e214 (patch) | |
tree | 1972e1aff83edcd3d60513017ffac9c295b1f075 /Lib/distutils/command | |
parent | 6b6bcc3e21b14c6de93e5cae68f78a86ecb8e1c9 (diff) | |
parent | cef3bdc01d6592ffadc9f1a6ff96133bd9c8f61b (diff) | |
download | cpython-9816619c5b4b267b1a60ccda898ab2b4d6e9e214.zip cpython-9816619c5b4b267b1a60ccda898ab2b4d6e9e214.tar.gz cpython-9816619c5b4b267b1a60ccda898ab2b4d6e9e214.tar.bz2 |
- Issue #17219: Add library build dir for Python extension cross-builds.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 2ffab18..54ce134 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -244,7 +244,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: |