Skip to content

Commit 0812d63

Browse files
committed
Rework naming of frameworks.
1 parent 533f5da commit 0812d63

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

patch/Python/Python.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ index 0c2510e161..5567080ba5 100644
7070
def find_library(name):
7171
possible = ['lib%s.dylib' % name,
7272
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
73-
index 73ac4405cb..5abec62047 100644
73+
index 73ac4405cb..0d830eed7b 100644
7474
--- a/Lib/importlib/_bootstrap_external.py
7575
+++ b/Lib/importlib/_bootstrap_external.py
7676
@@ -52,7 +52,7 @@
@@ -82,7 +82,7 @@ index 73ac4405cb..5abec62047 100644
8282
_CASE_INSENSITIVE_PLATFORMS = (_CASE_INSENSITIVE_PLATFORMS_BYTES_KEY
8383
+ _CASE_INSENSITIVE_PLATFORMS_STR_KEY)
8484

85-
@@ -1690,6 +1690,60 @@
85+
@@ -1690,6 +1690,59 @@
8686
return f'FileFinder({self.path!r})'
8787

8888

@@ -129,10 +129,9 @@ index 73ac4405cb..5abec62047 100644
129129
+
130130
+ def find_spec(self, fullname, path, target=None):
131131
+ name = fullname.split(".")[-1]
132-
+ framework_name = "_".join(fullname.split("."))
133132
+
134133
+ 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}")
136135
+ _bootstrap._verbose_message('Looking for Apple Framework dylib {}', dylib_file)
137136
+ if _path_isfile(dylib_file):
138137
+ loader = AppleFrameworkLoader(fullname, dylib_file, path)
@@ -143,7 +142,7 @@ index 73ac4405cb..5abec62047 100644
143142
# Import setup ###############################################################
144143

145144
def _fix_up_module(ns, name, pathname, cpathname=None):
146-
@@ -1739,3 +1793,7 @@
145+
@@ -1739,3 +1792,7 @@
147146
supported_loaders = _get_supported_file_loaders()
148147
sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
149148
sys.meta_path.append(PathFinder)

0 commit comments

Comments
 (0)