Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9b0255

Browse files
committed
merge
2 parents 538343d + cf550dc commit f9b0255

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Lib/distutils/tests/support.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def fixup_build_ext(cmd):
188188
cmd = build_ext(dist)
189189
support.fixup_build_ext(cmd)
190190
cmd.ensure_finalized()
191+
192+
Unlike most other Unix platforms, Mac OS X embeds absolute paths
193+
to shared libraries into executables, so the fixup is not needed there.
191194
"""
192195
if os.name == 'nt':
193196
cmd.debug = sys.executable.endswith('_d.exe')
@@ -199,5 +202,8 @@ def fixup_build_ext(cmd):
199202
if runshared is None:
200203
cmd.library_dirs = ['.']
201204
else:
202-
name, equals, value = runshared.partition('=')
203-
cmd.library_dirs = value.split(os.pathsep)
205+
if sys.platform == 'darwin':
206+
cmd.library_dirs = []
207+
else:
208+
name, equals, value = runshared.partition('=')
209+
cmd.library_dirs = value.split(os.pathsep)

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ Core and Builtins
463463
Library
464464
-------
465465

466+
- Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
467+
466468
- Issue #13676: Handle strings with embedded zeros correctly in sqlite3.
467469

468470
- Issue #13506: Add '' to path for IDLE Shell when started and restarted with Restart Shell.

0 commit comments

Comments
 (0)