diff options
author | Ned Deily <nad@acm.org> | 2012-02-03 01:42:16 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-02-03 01:42:16 (GMT) |
commit | cf550dcff8eccac2745acbff2541be3b6405abe4 (patch) | |
tree | 52e5a0901b6ebd2564ffbd1a115b02179d30ef76 | |
parent | 227e377b36378d4cc86c3dd182f8d7c031e41f86 (diff) | |
download | cpython-cf550dcff8eccac2745acbff2541be3b6405abe4.zip cpython-cf550dcff8eccac2745acbff2541be3b6405abe4.tar.gz cpython-cf550dcff8eccac2745acbff2541be3b6405abe4.tar.bz2 |
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
-rw-r--r-- | Lib/distutils/tests/support.py | 10 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index d77bbee..84d9232 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/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) @@ -113,6 +113,8 @@ Core and Builtins Library ------- +- Issue #13901: Prevent test_distutils failures on OS X with --enable-shared. + - 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. |