mirror of
https://github.com/python/cpython.git
synced 2025-09-25 17:59:57 +00:00
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
This commit is contained in:
parent
6dce7d633f
commit
fbc56fde26
2 changed files with 10 additions and 2 deletions
|
@ -200,6 +200,9 @@ def fixup_build_ext(cmd):
|
||||||
cmd = build_ext(dist)
|
cmd = build_ext(dist)
|
||||||
support.fixup_build_ext(cmd)
|
support.fixup_build_ext(cmd)
|
||||||
cmd.ensure_finalized()
|
cmd.ensure_finalized()
|
||||||
|
|
||||||
|
Unlike most other Unix platforms, Mac OS X embeds absolute paths
|
||||||
|
to shared libraries into executables, so the fixup is not needed there.
|
||||||
"""
|
"""
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
cmd.debug = sys.executable.endswith('_d.exe')
|
cmd.debug = sys.executable.endswith('_d.exe')
|
||||||
|
@ -210,6 +213,9 @@ def fixup_build_ext(cmd):
|
||||||
runshared = sysconfig.get_config_var('RUNSHARED')
|
runshared = sysconfig.get_config_var('RUNSHARED')
|
||||||
if runshared is None:
|
if runshared is None:
|
||||||
cmd.library_dirs = ['.']
|
cmd.library_dirs = ['.']
|
||||||
|
else:
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
cmd.library_dirs = []
|
||||||
else:
|
else:
|
||||||
name, equals, value = runshared.partition('=')
|
name, equals, value = runshared.partition('=')
|
||||||
cmd.library_dirs = value.split(os.pathsep)
|
cmd.library_dirs = value.split(os.pathsep)
|
||||||
|
|
|
@ -90,6 +90,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
|
||||||
|
|
||||||
- Issue #13676: Handle strings with embedded zeros correctly in sqlite3.
|
- Issue #13676: Handle strings with embedded zeros correctly in sqlite3.
|
||||||
|
|
||||||
- Issue #13506: Add '' to path for IDLE Shell when started and restarted with Restart Shell.
|
- Issue #13506: Add '' to path for IDLE Shell when started and restarted with Restart Shell.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue