mirror of
https://github.com/astral-sh/uv
synced 2026-01-21 21:40:11 -05:00
Add iOS support for Python discovery (#16686)
iOS support exist nominally (https://github.com/astral-sh/uv/pull/15640), but Python discovery currently fails.
This commit is contained in:
@@ -512,6 +512,15 @@ def get_operating_system_and_architecture():
|
||||
"major": int(version[0]),
|
||||
"minor": int(version[1]),
|
||||
}
|
||||
elif operating_system == "ios":
|
||||
ios_ver = platform.ios_ver()
|
||||
version = ios_ver.release.split(".")
|
||||
operating_system = {
|
||||
"name": "ios",
|
||||
"major": int(version[0]),
|
||||
"minor": int(version[1]),
|
||||
"simulator": ios_ver.is_simulator,
|
||||
}
|
||||
elif operating_system == "emscripten":
|
||||
pyodide_abi_version = sysconfig.get_config_var("PYODIDE_ABI_VERSION")
|
||||
if not pyodide_abi_version:
|
||||
|
||||
Reference in New Issue
Block a user