diff options
author | Ned Deily <nad@acm.org> | 2012-02-03 01:46:37 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-02-03 01:46:37 (GMT) |
commit | 61c4e10035aa1ffe5c0d78e5b918b8df4e20a263 (patch) | |
tree | da51b1e93e215470fc98375ef31d1d585d75f7eb | |
parent | f9b0255db3bdb7519093be5a6d269ab5da2edcc0 (diff) | |
download | cpython-61c4e10035aa1ffe5c0d78e5b918b8df4e20a263.zip cpython-61c4e10035aa1ffe5c0d78e5b918b8df4e20a263.tar.gz cpython-61c4e10035aa1ffe5c0d78e5b918b8df4e20a263.tar.bz2 |
Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.
-rw-r--r-- | Lib/packaging/tests/support.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Lib/packaging/tests/support.py b/Lib/packaging/tests/support.py index 441efc0..4848bcc 100644 --- a/Lib/packaging/tests/support.py +++ b/Lib/packaging/tests/support.py @@ -366,6 +366,9 @@ def fixup_build_ext(cmd): cmd = build_ext(dist) support.fixup_build_ext(cmd) 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': cmd.debug = sys.executable.endswith('_d.exe') @@ -377,9 +380,11 @@ def fixup_build_ext(cmd): if runshared is None: cmd.library_dirs = ['.'] else: - name, equals, value = runshared.partition('=') - cmd.library_dirs = value.split(os.pathsep) - + if sys.platform == 'darwin': + cmd.library_dirs = [] + else: + name, equals, value = runshared.partition('=') + cmd.library_dirs = value.split(os.pathsep) try: from test.support import skip_unless_symlink |