mirror of https://github.com/python/cpython.git
Bug #1600860: Search for shared python library in LIBDIR, not
lib/python/config, on "linux" and "gnu" systems. Will backport.
This commit is contained in:
parent
fd963265e2
commit
0a2032673c
|
@ -185,9 +185,7 @@ def finalize_options (self):
|
||||||
|
|
||||||
# for extensions under Cygwin and AtheOS Python's library directory must be
|
# for extensions under Cygwin and AtheOS Python's library directory must be
|
||||||
# appended to library_dirs
|
# appended to library_dirs
|
||||||
if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos' or \
|
if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos':
|
||||||
((sys.platform.startswith('linux') or sys.platform.startswith('gnu')) and
|
|
||||||
sysconfig.get_config_var('Py_ENABLE_SHARED')):
|
|
||||||
if string.find(sys.executable, sys.exec_prefix) != -1:
|
if string.find(sys.executable, sys.exec_prefix) != -1:
|
||||||
# building third party extensions
|
# building third party extensions
|
||||||
self.library_dirs.append(os.path.join(sys.prefix, "lib",
|
self.library_dirs.append(os.path.join(sys.prefix, "lib",
|
||||||
|
@ -197,6 +195,17 @@ def finalize_options (self):
|
||||||
# building python standard extensions
|
# building python standard extensions
|
||||||
self.library_dirs.append('.')
|
self.library_dirs.append('.')
|
||||||
|
|
||||||
|
# for extensions under Linux with a shared Python library,
|
||||||
|
# Python's library directory must be appended to library_dirs
|
||||||
|
if (sys.platform.startswith('linux') or sys.platform.startswith('gnu')) \
|
||||||
|
and sysconfig.get_config_var('Py_ENABLE_SHARED'):
|
||||||
|
if string.find(sys.executable, sys.exec_prefix) != -1:
|
||||||
|
# building third party extensions
|
||||||
|
self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
|
||||||
|
else:
|
||||||
|
# building python standard extensions
|
||||||
|
self.library_dirs.append('.')
|
||||||
|
|
||||||
# The argument parsing will result in self.define being a string, but
|
# The argument parsing will result in self.define being a string, but
|
||||||
# it has to be a list of 2-tuples. All the preprocessor symbols
|
# it has to be a list of 2-tuples. All the preprocessor symbols
|
||||||
# specified by the 'define' option will be set to '1'. Multiple
|
# specified by the 'define' option will be set to '1'. Multiple
|
||||||
|
|
|
@ -128,6 +128,9 @@ Core and builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Bug #1600860: Search for shared python library in LIBDIR, not lib/python/config,
|
||||||
|
on "linux" and "gnu" systems.
|
||||||
|
|
||||||
- Patch #1652681: tarfile.py: create nonexistent files in append mode and
|
- Patch #1652681: tarfile.py: create nonexistent files in append mode and
|
||||||
allow appending to empty files.
|
allow appending to empty files.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue