[Python-checkins] cpython (2.7): Issue #4366: Fix building extensions on all platforms when --enable-shared is
antoine.pitrou
python-checkins at python.org
Sun Sep 29 01:51:46 CEST 2013
http://hg.python.org/cpython/rev/28e6c23c8ae6
changeset: 85827:28e6c23c8ae6
branch: 2.7
parent: 85822:39bb7421cb69
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Sep 29 01:48:40 2013 +0200
summary:
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
files:
Lib/distutils/command/build_ext.py | 8 +++-----
Misc/NEWS | 3 +++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -231,12 +231,10 @@
# building python standard extensions
self.library_dirs.append('.')
- # for extensions under Linux or Solaris with a shared Python library,
+ # For building extensions with a shared Python library,
# Python's library directory must be appended to library_dirs
- sysconfig.get_config_var('Py_ENABLE_SHARED')
- if ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')
- or sys.platform.startswith('sunos'))
- and sysconfig.get_config_var('Py_ENABLE_SHARED')):
+ # See Issues: #1600860, #4366
+ if (sysconfig.get_config_var('Py_ENABLE_SHARED')):
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
# building third party extensions
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,9 @@
Library
-------
+- Issue #4366: Fix building extensions on all platforms when --enable-shared
+ is used.
+
- Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list