mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 13:20:53 +00: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:
parent
63df2cdfe9
commit
e36bf634ba
1 changed files with 9 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue