summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-02-03 02:42:16 +0100
committerNed Deily <nad@acm.org>2012-02-03 02:42:16 +0100
commitef0dc103554be0c54d48e5bc028050423efb4594 (patch)
tree1cdf69ac7de409ce0441872ece03d0cc91d203bb
parent989fd55dddc6638eab5073ab0adcc9df0ceac154 (diff)
downloadpython-setuptools-git-ef0dc103554be0c54d48e5bc028050423efb4594.tar.gz
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
-rw-r--r--tests/support.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/support.py b/tests/support.py
index d77bbee3..84d92323 100644
--- a/tests/support.py
+++ b/tests/support.py
@@ -188,6 +188,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')
@@ -199,5 +202,8 @@ 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)