Commit 61c4e100 authored by Ned Deily's avatar Ned Deily

Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.

parent f9b0255d
...@@ -366,6 +366,9 @@ def fixup_build_ext(cmd): ...@@ -366,6 +366,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')
...@@ -377,9 +380,11 @@ def fixup_build_ext(cmd): ...@@ -377,9 +380,11 @@ def fixup_build_ext(cmd):
if runshared is None: if runshared is None:
cmd.library_dirs = ['.'] cmd.library_dirs = ['.']
else: else:
name, equals, value = runshared.partition('=') if sys.platform == 'darwin':
cmd.library_dirs = value.split(os.pathsep) cmd.library_dirs = []
else:
name, equals, value = runshared.partition('=')
cmd.library_dirs = value.split(os.pathsep)
try: try:
from test.support import skip_unless_symlink from test.support import skip_unless_symlink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment