[Python-checkins] cpython: Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.
ned.deily
python-checkins at python.org
Fri Feb 3 02:52:39 CET 2012
http://hg.python.org/cpython/rev/84be86af9161
changeset: 74740:84be86af9161
user: Ned Deily <nad at acm.org>
date: Fri Feb 03 02:46:37 2012 +0100
summary:
Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.
files:
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
--- a/Lib/packaging/tests/support.py
+++ b/Lib/packaging/tests/support.py
@@ -366,6 +366,9 @@
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 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list