mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
gh-114099 - Add iOS framework loading machinery. (GH-116454)
Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
a557478987
commit
408e127159
22 changed files with 302 additions and 62 deletions
|
@ -72,7 +72,12 @@ def _find_module(name, path=None):
|
|||
if isinstance(spec.loader, importlib.machinery.SourceFileLoader):
|
||||
kind = _PY_SOURCE
|
||||
|
||||
elif isinstance(spec.loader, importlib.machinery.ExtensionFileLoader):
|
||||
elif isinstance(
|
||||
spec.loader, (
|
||||
importlib.machinery.ExtensionFileLoader,
|
||||
importlib.machinery.AppleFrameworkLoader,
|
||||
)
|
||||
):
|
||||
kind = _C_EXTENSION
|
||||
|
||||
elif isinstance(spec.loader, importlib.machinery.SourcelessFileLoader):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue