Kaydet (Commit) c74ca539 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Ned Deily

bpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625) (GH-6680)

(cherry picked from commit d06d345f)
Co-authored-by: 's avatarRay Donnelly <mingw.android@gmail.com>
üst 0596f319
...@@ -67,7 +67,7 @@ if os.name == "nt": ...@@ -67,7 +67,7 @@ if os.name == "nt":
return fname return fname
return None return None
if os.name == "posix" and sys.platform == "darwin": elif os.name == "posix" and sys.platform == "darwin":
from ctypes.macholib.dyld import dyld_find as _dyld_find from ctypes.macholib.dyld import dyld_find as _dyld_find
def find_library(name): def find_library(name):
possible = ['lib%s.dylib' % name, possible = ['lib%s.dylib' % name,
...@@ -80,7 +80,7 @@ if os.name == "posix" and sys.platform == "darwin": ...@@ -80,7 +80,7 @@ if os.name == "posix" and sys.platform == "darwin":
continue continue
return None return None
if sys.platform.startswith("aix"): elif sys.platform.startswith("aix"):
# AIX has two styles of storing shared libraries # AIX has two styles of storing shared libraries
# GNU auto_tools refer to these as svr4 and aix # GNU auto_tools refer to these as svr4 and aix
# svr4 (System V Release 4) is a regular file, often with .so as suffix # svr4 (System V Release 4) is a regular file, often with .so as suffix
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment