@@ -70,7 +70,7 @@ index 0c2510e161..5567080ba5 100644
70
70
def find_library(name):
71
71
possible = ['lib%s.dylib' % name,
72
72
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
73
- index 73ac4405cb..5abec62047 100644
73
+ index 73ac4405cb..0d830eed7b 100644
74
74
--- a/Lib/importlib/_bootstrap_external.py
75
75
+++ b/Lib/importlib/_bootstrap_external.py
76
76
@@ -52,7 +52,7 @@
@@ -82,7 +82,7 @@ index 73ac4405cb..5abec62047 100644
82
82
_CASE_INSENSITIVE_PLATFORMS = (_CASE_INSENSITIVE_PLATFORMS_BYTES_KEY
83
83
+ _CASE_INSENSITIVE_PLATFORMS_STR_KEY)
84
84
85
- @@ -1690,6 +1690,60 @@
85
+ @@ -1690,6 +1690,59 @@
86
86
return f'FileFinder({self.path!r})'
87
87
88
88
@@ -129,10 +129,9 @@ index 73ac4405cb..5abec62047 100644
129
129
+
130
130
+ def find_spec(self, fullname, path, target=None):
131
131
+ name = fullname.split(".")[-1]
132
- + framework_name = "_".join(fullname.split("."))
133
132
+
134
133
+ for extension in EXTENSION_SUFFIXES:
135
- + dylib_file = _path_join(self.frameworks_path, f"{framework_name }.framework", f"{name}{extension}")
134
+ + dylib_file = _path_join(self.frameworks_path, f"{fullname }.framework", f"{name}{extension}")
136
135
+ _bootstrap._verbose_message('Looking for Apple Framework dylib {}', dylib_file)
137
136
+ if _path_isfile(dylib_file):
138
137
+ loader = AppleFrameworkLoader(fullname, dylib_file, path)
@@ -143,7 +142,7 @@ index 73ac4405cb..5abec62047 100644
143
142
# Import setup ###############################################################
144
143
145
144
def _fix_up_module(ns, name, pathname, cpathname=None):
146
- @@ -1739,3 +1793 ,7 @@
145
+ @@ -1739,3 +1792 ,7 @@
147
146
supported_loaders = _get_supported_file_loaders()
148
147
sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
149
148
sys.meta_path.append(PathFinder)
0 commit comments