Skip to content

Personal AI, On Personal Devices

Python

fix(deps,scripts): make quickstart work on Intel macOS (#1067)

Parker Henderson7d16cd7b3781
diff --git a/pyproject.toml b/pyproject.toml
index 70bd2aaf..8f48a5ea 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -101,6 +101,9 @@ desktop = [
"av>=11,<19",
# 1.24.x declares Python 3.10 support but publishes no cp310 wheels (#917).
"onnxruntime<1.24; python_version < '3.11'",
+ # 1.24+ dropped macOS x86_64 wheels (arm64-only from 1.24.0 on), leaving
+ # Intel Macs with no installable wheel; 1.23.2 is the last universal one.
+ "onnxruntime<1.24; sys_platform == 'darwin' and platform_machine == 'x86_64'",
"numpy>=1.24",
"sounddevice>=0.5",
"soundfile>=0.12",
@@ -175,6 +178,8 @@ speech = [
"av>=11,<19",
# Keep the pip-visible speech extra installable on supported Python 3.10.
"onnxruntime<1.24; python_version < '3.11'",
+ # Same Intel Mac floor as the desktop extra above.
+ "onnxruntime<1.24; sys_platform == 'darwin' and platform_machine == 'x86_64'",
"numpy>=1.24",
"sounddevice>=0.5",
"soundfile>=0.12",
diff --git a/scripts/quickstart.sh b/scripts/quickstart.sh
index de9225a6..2d872b0b 100755
--- a/scripts/quickstart.sh
+++ b/scripts/quickstart.sh
@@ -27,7 +27,9 @@ CLEANUP_PIDS=()
cleanup() {
echo ""
info "Shutting down..."
- for pid in "${CLEANUP_PIDS[@]}"; do
+ # The "${arr[@]+...}" guard is needed: bash 3.2 (macOS system bash) expands
+ # an empty array to an unbound-variable error under `set -u`.
+ for pid in ${CLEANUP_PIDS[@]+"${CLEANUP_PIDS[@]}"}; do
kill "$pid" 2>/dev/null || true
done
wait 2>/dev/null || true
@@ -66,6 +68,82 @@ else
fail "Python 3.10+ required (found $PY_VERSION)"
fi
+version_at_least() {
+ "$PY_CMD" - "$1" "$2" <<'PY'
+import re
+import sys
+
+def version(text):
+ match = re.fullmatch(r"v?(\d+)\.(\d+)(?:\.(\d+))?", text)
+ return tuple(int(part or 0) for part in match.groups()) if match else None
+
+actual, minimum = map(version, sys.argv[1:])
+sys.exit(0 if actual is not None and minimum is not None and actual >= minimum else 1)
+PY
+}
+
+# Read the frontend's pins so this preflight stays aligned with engine-strict.
+FRONTEND_VERSIONS=$("$PY_CMD" - "$REPO_ROOT/frontend/package.json" <<'PY'
+import json
+import re
+import sys
+
+with open(sys.argv[1]) as handle:
+ package = json.load(handle)
+node = re.fullmatch(r">=(\d+\.\d+(?:\.\d+)?)", package["engines"]["node"])
+npm = re.fullmatch(r"npm@(\d+\.\d+\.\d+)", package["packageManager"])
+if node is None or npm is None:
+ sys.exit("Unsupported frontend engine pins; update the quickstart preflight.")
+print(node.group(1), npm.group(1))
+PY
+)
+read -r NODE_MIN_VERSION NPM_TARGET_VERSION <<< "$FRONTEND_VERSIONS"
+
+RUST_TOOLCHAIN=$("$PY_CMD" - "$REPO_ROOT/rust/rust-toolchain.toml" <<'PY'
+import re
+import sys
+
+with open(sys.argv[1]) as handle:
+ match = re.search(r'^channel\s*=\s*"(\d+\.\d+(?:\.\d+)?)"', handle.read(), re.M)
+if match is None:
+ sys.exit("The quickstart requires a versioned Rust toolchain pin.")
+print(match.group(1))
+PY
+)
+
+rust_toolchain_ready() {
+ command -v rustc &>/dev/null && command -v cargo &>/dev/null || return 1
+ RUST_VERSION=$(cd "$REPO_ROOT/rust" && rustc --version 2>/dev/null) || return 1
+ (cd "$REPO_ROOT/rust" && cargo --version) &>/dev/null || return 1
+ version_at_least "$(echo "$RUST_VERSION" | cut -d' ' -f2)" "$RUST_TOOLCHAIN"
+}
+
+node_toolchain_supported() {
+ "$PY_CMD" - "$1" "$REPO_ROOT/frontend/package-lock.json" <<'PY'
+import json
+import re
+import sys
+
+actual = tuple(map(int, sys.argv[1].lstrip("v").split(".")))
+with open(sys.argv[2]) as handle:
+ lock = json.load(handle)
+requirement = lock.get("packages", {}).get("node_modules/vitest", {}).get("engines", {}).get("node")
+if not requirement:
+ sys.exit(0)
+# The locked test runner excludes some non-LTS Node releases even when they
+# satisfy package.json's minimum. Honor its caret / minimum alternatives.
+for alternative in requirement.split("||"):
+ match = re.fullmatch(r"\s*(\^|>=)(\d+)\.(\d+)\.(\d+)\s*", alternative)
+ if match is None:
+ sys.exit(f"Unsupported locked Node.js requirement: {requirement}")
+ operator, *parts = match.groups()
+ minimum = tuple(map(int, parts))
+ if actual >= minimum and (operator == ">=" or actual[0] == minimum[0]):
+ sys.exit(0)
+sys.exit(f"The locked frontend toolchain requires Node.js {requirement}.")
+PY
+}
+
# ── 2. Check / install uv ───────────────────────────────────────────
info "Checking uv..."
if command -v uv &>/dev/null; then
@@ -77,20 +155,59 @@ else
ok "uv installed"
fi
+# ── 2b. Check / install Rust ────────────────────────────────────────
+# The Rust extension (step 7b) is mandatory: memory/storage backends fail
+# without the compiled openjarvis_rust module.
+info "Checking Rust toolchain..."
+if rust_toolchain_ready; then
+ ok "$RUST_VERSION"
+else
+ warn "Rust $RUST_TOOLCHAIN or newer was not found — installing the pinned toolchain..."
+ if command -v rustup &>/dev/null; then
+ rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal
+ else
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
+ | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN"
+ fi
+ export PATH="$HOME/.cargo/bin:$PATH"
+ rust_toolchain_ready \
+ || fail "Rust installation did not provide working rustc/cargo $RUST_TOOLCHAIN commands."
+ ok "$RUST_VERSION"
+fi
+
# ── 3. Check Node.js ────────────────────────────────────────────────
info "Checking Node.js..."
if command -v node &>/dev/null; then
NODE_VERSION=$(node --version)
- NODE_MAJOR=$(echo "$NODE_VERSION" | sed 's/v//' | cut -d. -f1)
- if [ "$NODE_MAJOR" -ge 18 ]; then
+ if version_at_least "$NODE_VERSION" "$NODE_MIN_VERSION" \
+ && node_toolchain_supported "$NODE_VERSION"; then
ok "Node.js $NODE_VERSION"
else
- fail "Node.js 18+ required (found $NODE_VERSION). Install from https://nodejs.org"
+ fail "Node.js $NODE_MIN_VERSION or newer and a frontend-compatible release are required (found $NODE_VERSION). Install a compatible LTS release from https://nodejs.org"
fi
else
fail "Node.js not found. Install from https://nodejs.org"
fi
+# The frontend pins npm in its engines field with engine-strict, so bundled
+# npm versions below the pin hard-fail `npm install` (node 24.x bundles 11.12).
+info "Checking npm..."
+NPM_VERSION=$(npm --version 2>/dev/null || echo 0)
+if [ "${NPM_VERSION%%.*}" = "${NPM_TARGET_VERSION%%.*}" ] \
+ && version_at_least "$NPM_VERSION" "$NPM_TARGET_VERSION"; then
+ ok "npm $NPM_VERSION"
+else
+ warn "npm $NPM_VERSION does not match the frontend's pin — installing npm $NPM_TARGET_VERSION..."
+ npm install -g "npm@$NPM_TARGET_VERSION" \
+ || fail "Could not install npm $NPM_TARGET_VERSION. Install it manually: https://nodejs.org"
+ NPM_VERSION=$(npm --version)
+ if [ "${NPM_VERSION%%.*}" != "${NPM_TARGET_VERSION%%.*}" ] \
+ || ! version_at_least "$NPM_VERSION" "$NPM_TARGET_VERSION"; then
+ fail "npm $NPM_TARGET_VERSION was installed but npm $NPM_VERSION is still on PATH. Open a fresh terminal and re-run quickstart."
+ fi
+ ok "npm $NPM_VERSION"
+fi
+
# ── 4. Check / install Ollama ────────────────────────────────────────
info "Checking Ollama..."
if command -v ollama &>/dev/null; then
@@ -154,8 +271,8 @@ ok "Python dependencies installed"
# ── 7b. Build Rust extension ──────────────────────────────────────
info "Building Rust extension..."
-uv run maturin develop -m rust/crates/openjarvis-python/Cargo.toml --quiet 2>/dev/null \
- || uv run maturin develop -m rust/crates/openjarvis-python/Cargo.toml
+(cd rust && uv run maturin develop -m crates/openjarvis-python/Cargo.toml --quiet 2>/dev/null \
+ || uv run maturin develop -m crates/openjarvis-python/Cargo.toml)
ok "Rust extension built"
# ── 8. Install frontend dependencies ────────────────────────────────
diff --git a/tests/install/test_quickstart_prerequisites.py b/tests/install/test_quickstart_prerequisites.py
new file mode 100644
index 00000000..f9da9fd6
--- /dev/null
+++ b/tests/install/test_quickstart_prerequisites.py
@@ -0,0 +1,244 @@
+"""Exercise quickstart preflight with local command stubs, without installing."""
+
+from __future__ import annotations
+
+import json
+import os
+import shlex
+import shutil
+import subprocess
+import sys
+from pathlib import Path
+
+import pytest
+from packaging.markers import default_environment
+from packaging.requirements import Requirement
+
+if sys.version_info >= (3, 11):
+ import tomllib
+else:
+ import tomli as tomllib
+
+pytestmark = pytest.mark.skipif(sys.platform == "win32", reason="POSIX quickstart")
+_SCRIPT = Path(__file__).parents[2] / "scripts" / "quickstart.sh"
+
+
+def _executable(path: Path, content: str) -> None:
+ path.write_text("#!/bin/sh\n" + content)
+ path.chmod(0o755)
+
+
+def preflight(tmp_path):
+ repo = tmp_path / "repo"
+ (repo / "scripts").mkdir(parents=True)
+ (repo / "frontend").mkdir()
+ (repo / "rust").mkdir()
+ (repo / "rust" / "rust-toolchain.toml").write_text(
+ '[toolchain]\nchannel = "1.89.0"\n'
+ )
+ (repo / "frontend" / "package.json").write_text(
+ json.dumps({"engines": {"node": ">=22.22"}, "packageManager": "[email protected]"})
+ )
+ (repo / "frontend" / "package-lock.json").write_text(
+ json.dumps(
+ {
+ "packages": {
+ "node_modules/vitest": {
+ "engines": {"node": "^22.12.0 || ^24.0.0 || >=26.0.0"}
+ }
+ }
+ }
+ )
+ )
+ script = repo / "scripts" / "quickstart.sh"
+ # Stop before service setup: run the real preflight and its EXIT trap.
+ script.write_text(_SCRIPT.read_text().split("# ── 4. Check / install Ollama")[0])
+ bindir = tmp_path / "bin"
+ bindir.mkdir()
+ # Preflight uses only the standard library; avoid unrelated site hooks in
+ # the developer's test environment on each subprocess invocation.
+ _executable(bindir / "python3", f'exec {shlex.quote(sys.executable)} -S "$@"\n')
+ _executable(bindir / "uv", "echo 'uv 0.13.0'\n")
+ _executable(bindir / "node", 'echo "v$TEST_NODE_VERSION"\n')
+ for command in ("rustc", "cargo"):
+ _executable(
+ bindir / command,
+ 'if [ "$TEST_RUST_BROKEN" = 1 ]; then exit 1; fi\n'
+ f'echo "{command} $TEST_RUST_VERSION"\n',
+ )
+ _executable(
+ bindir / "npm",
+ 'if [ "$1" = --version ]; then cat "$TEST_NPM_VERSION_FILE"; exit; fi\n'
+ 'echo "$*" >> "$TEST_COMMAND_LOG"\n'
+ 'if [ "$TEST_NPM_UPGRADE_FAIL" = 1 ]; then exit 1; fi\n'
+ 'if [ "$TEST_NPM_NO_UPDATE" != 1 ]; then\n'
+ ' echo "${3#npm@}" > "$TEST_NPM_VERSION_FILE"\n'
+ "fi\n",
+ )
+ _executable(
+ bindir / "curl",
+ "cat <<'INSTALL'\n"
+ 'echo rustup >> "$TEST_COMMAND_LOG"\n'
+ 'mkdir -p "$HOME/.cargo/bin"\n'
+ "for command in rustc cargo; do\n"
+ " printf '#!/bin/sh\\necho %s 1.89.0\\n' \"$command\" "
+ '> "$HOME/.cargo/bin/$command"\n'
+ ' chmod +x "$HOME/.cargo/bin/$command"\n'
+ "done\n"
+ "INSTALL\n",
+ )
+ home = tmp_path / "home"
+ home.mkdir()
+ version_file = tmp_path / "npm-version"
+ log = tmp_path / "commands"
+
+ def run(node="22.22.0", npm="11.19.0", **settings):
+ version_file.write_text(npm)
+ env = {
+ **os.environ,
+ "HOME": str(home),
+ "PATH": f"{bindir}:/usr/bin:/bin",
+ "TEST_NODE_VERSION": node,
+ "TEST_NPM_VERSION_FILE": str(version_file),
+ "TEST_COMMAND_LOG": str(log),
+ "TEST_RUST_BROKEN": "0",
+ "TEST_RUST_VERSION": "1.89.0",
+ "TEST_NPM_UPGRADE_FAIL": "0",
+ "TEST_NPM_NO_UPDATE": "0",
+ **settings,
+ }
+ result = subprocess.run(
+ [shutil.which("bash") or "/bin/bash", str(script)],
+ env=env,
+ text=True,
+ capture_output=True,
+ timeout=45,
+ )
+ return result, log.read_text() if log.exists() else ""
+
+ return run
+
+
[email protected]("node", ["18.20.0", "20.19.0", "22.21.9", "23.10.0", "25.0.0"])
+def test_unsupported_node_is_rejected_before_npm_changes(preflight, node):
+ result, commands = preflight(node=node, npm="10.0.0")
+ assert result.returncode == 1
+ assert "Node.js 22.22 or newer" in result.stdout
+ assert commands == ""
+ assert "unbound variable" not in result.stderr
+
+
[email protected]("node", ["22.22.0", "24.0.0", "26.0.0", "27.0.0"])
+def test_node_satisfies_both_frontend_and_locked_toolchain(preflight, node):
+ result, commands = preflight(node=node)
+ assert result.returncode == 0, result.stderr
+ assert commands == ""
+
+
[email protected]("npm", ["11.19.0", "11.19.1", "11.20.0"])
+def test_compatible_npm_does_not_trigger_an_install(preflight, npm):
+ result, commands = preflight(npm=npm)
+ assert result.returncode == 0, result.stderr
+ assert commands == ""
+ assert "unbound variable" not in result.stderr
+
+
[email protected]("npm", ["10.9.0", "11.18.9", "12.0.0"])
+def test_incompatible_npm_is_replaced_by_frontend_pin(preflight, npm):
+ result, commands = preflight(npm=npm)
+ assert result.returncode == 0, result.stderr
+ assert commands == "install -g [email protected]\n"
+ assert "npm 11.19.0" in result.stdout
+
+
+def test_npm_install_that_does_not_update_path_is_not_reported_as_ready(preflight):
+ result, _ = preflight(npm="11.12.0", TEST_NPM_NO_UPDATE="1")
+ assert result.returncode == 1
+ assert "still on PATH" in result.stdout
+
+
+def test_broken_rustup_shims_trigger_toolchain_install(preflight):
+ result, commands = preflight(TEST_RUST_BROKEN="1")
+ assert result.returncode == 0, result.stderr
+ assert commands == "rustup\n"
+
+
+def test_working_but_old_rust_is_upgraded_before_native_build(preflight):
+ result, commands = preflight(TEST_RUST_VERSION="1.88.0")
+ assert result.returncode == 0, result.stderr
+ assert commands == "rustup\n"
+
+
+def test_script_parses_with_bash():
+ result = subprocess.run(
+ [shutil.which("bash") or "/bin/bash", "-n", str(_SCRIPT)],
+ text=True,
+ capture_output=True,
+ )
+ assert result.returncode == 0, result.stderr
+
+
+def test_native_build_runs_under_the_pinned_workspace_toolchain(tmp_path):
+ (tmp_path / "rust").mkdir()
+ bindir = tmp_path / "bin"
+ bindir.mkdir()
+ calls = tmp_path / "uv-calls"
+ _executable(bindir / "uv", f'printf "%s\\n" "$PWD" "$*" >> "{calls}"\n')
+ block = _SCRIPT.read_text().split("# ── 7b. Build Rust extension")[1]
+ block = block.split("# ── 8. Install frontend dependencies")[0]
+ # The section heading's remaining decoration belongs to its comment.
+ block = block.split("\n", 1)[1]
+ result = subprocess.run(
+ [
+ shutil.which("bash") or "/bin/bash",
+ "-c",
+ "set -euo pipefail\ninfo() { :; }\nok() { :; }\n" + block,
+ ],
+ cwd=tmp_path,
+ env={**os.environ, "PATH": f"{bindir}:/usr/bin:/bin"},
+ text=True,
+ capture_output=True,
+ )
+ assert result.returncode == 0, result.stderr
+ assert calls.read_text().splitlines() == [
+ str(tmp_path / "rust"),
+ "run maturin develop -m crates/openjarvis-python/Cargo.toml --quiet",
+ ]
+
+
+ "platform,machine,python_version,capped",
+ [
+ ("darwin", "x86_64", "3.13", True),
+ ("darwin", "arm64", "3.13", False),
+ ("linux", "x86_64", "3.13", False),
+ ("darwin", "arm64", "3.10", True),
+ ],
+)
+def test_onnxruntime_cap_only_applies_to_platforms_without_new_wheels(
+ platform, machine, python_version, capped
+):
+ project = tomllib.loads((_SCRIPT.parents[1] / "pyproject.toml").read_text())
+ environment = {
+ **default_environment(),
+ "sys_platform": platform,
+ "platform_machine": machine,
+ "python_version": python_version,
+ "python_full_version": python_version + ".0",
+ }
+ for extra in ("desktop", "speech"):
+ requirements = [
+ Requirement(value)
+ for value in project["project"]["optional-dependencies"][extra]
+ ]
+ active = [
+ requirement
+ for requirement in requirements
+ if requirement.name == "onnxruntime"
+ and (requirement.marker is None or requirement.marker.evaluate(environment))
+ ]
+ assert bool(active) is capped
+ if capped:
+ assert all("1.23.2" in requirement.specifier for requirement in active)
+ assert all("1.24.2" not in requirement.specifier for requirement in active)
diff --git a/uv.lock b/uv.lock
index aa0407df..6ab977c2 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1,5 +1,5 @@
version = 1
-revision = 3
+revision = 5
requires-python = ">=3.10, <3.14"
resolution-markers = [
"python_full_version >= '3.13' and platform_machine == 's390x' and sys_platform == 'linux'",
@@ -35,7 +35,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -2039,8 +2040,8 @@ dependencies = [
{ name = "av" },
{ name = "ctranslate2" },
{ name = "huggingface-hub" },
- { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "onnxruntime", version = "1.24.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.11' and platform_machine == 's390x') or (python_full_version < '3.11' and sys_platform != 'darwin') or (platform_machine != 's390x' and sys_platform == 'darwin')" },
+ { name = "onnxruntime", version = "1.24.2", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version >= '3.11' and platform_machine == 's390x') or (python_full_version >= '3.11' and sys_platform != 'darwin')" },
{ name = "tokenizers" },
{ name = "tqdm" },
]
@@ -2431,7 +2432,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
dependencies = [
@@ -2588,7 +2590,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
dependencies = [
@@ -4412,7 +4415,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -4991,10 +4995,14 @@ name = "onnxruntime"
version = "1.23.2"
source = { registry = "https://pypi.org/simple" }
resolution-markers = [
+ "python_full_version >= '3.13' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version == '3.12.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -5044,7 +5052,6 @@ resolution-markers = [
"python_full_version >= '3.13' and platform_machine == 's390x' and sys_platform == 'emscripten'",
"python_full_version >= '3.13' and platform_machine != 's390x' and sys_platform == 'emscripten'",
"python_full_version >= '3.13' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version >= '3.13' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version >= '3.13' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version >= '3.13' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version == '3.12.*' and platform_machine == 's390x' and sys_platform == 'linux'",
@@ -5054,7 +5061,6 @@ resolution-markers = [
"python_full_version == '3.12.*' and platform_machine == 's390x' and sys_platform == 'emscripten'",
"python_full_version == '3.12.*' and platform_machine != 's390x' and sys_platform == 'emscripten'",
"python_full_version == '3.12.*' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version == '3.12.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.12.*' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version == '3.12.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version == '3.11.*' and platform_machine == 's390x' and sys_platform == 'linux'",
@@ -5064,7 +5070,6 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine == 's390x' and sys_platform == 'emscripten'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'emscripten'",
"python_full_version == '3.11.*' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
]
@@ -5072,22 +5077,19 @@ dependencies = [
{ name = "flatbuffers" },
{ name = "numpy" },
{ name = "packaging" },
- { name = "protobuf", version = "6.33.5", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 's390x'" },
+ { name = "protobuf", version = "6.33.5", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 's390x' and sys_platform != 'darwin'" },
{ name = "protobuf", version = "7.36.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 's390x'" },
{ name = "sympy" },
]
wheels = [
- { url = "https://files.pythonhosted.org/packages/2c/4e/050c947924ffd8ff856d219d8f83ee3d4e7dc52d5a6770ff34a15675c437/onnxruntime-1.24.2-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:69d1c75997276106d24e65da2e69ec4302af1b117fef414e2154740cde0f6214", size = 17217298, upload-time = "2026-02-19T17:15:09.891Z" },
{ url = "https://files.pythonhosted.org/packages/30/17/c814121dff4de962476ced979c402c3cce72d5d46e87099610b47a1f2622/onnxruntime-1.24.2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:670d7e671af2dbd17638472f9b9ff98041889efd7150718406b9ea989312d064", size = 15027128, upload-time = "2026-02-19T17:13:19.367Z" },
{ url = "https://files.pythonhosted.org/packages/2c/32/4e5921ba8b82ac37cad45f1108ca6effd430f49c7f20577d53f317d166ed/onnxruntime-1.24.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93fe190ee555ae8e9c1214bcfcf13af85cd06dd835e8d835ce5a8d01056844fe", size = 17107440, upload-time = "2026-02-19T17:14:02.932Z" },
{ url = "https://files.pythonhosted.org/packages/48/55/9d13c97d912db81e81c9b369a49b36f2804fa3bb8de64462e5e6bd412d0b/onnxruntime-1.24.2-cp311-cp311-win_amd64.whl", hash = "sha256:04a3a80b28dd39739463cb1e34081eed668929ba0b8e1bc861885dcdf66b7601", size = 12506375, upload-time = "2026-02-19T17:14:57.049Z" },
{ url = "https://files.pythonhosted.org/packages/b0/d4/cf0e0b3bd84e7b68fe911810f7098f414936d1ffb612faa569a3fb8a76a5/onnxruntime-1.24.2-cp311-cp311-win_arm64.whl", hash = "sha256:a845096277444670b0b52855bb4aad706003540bd34986b50868e9f29606c142", size = 12167758, upload-time = "2026-02-19T17:14:47.386Z" },
- { url = "https://files.pythonhosted.org/packages/23/1c/38af1cfe82c75d2b205eb5019834b0f2b0b6647ec8a20a3086168e413570/onnxruntime-1.24.2-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:d8a50b422d45c0144864c0977d04ad4fa50a8a48e5153056ab1f7d06ea9fc3e2", size = 17217857, upload-time = "2026-02-19T17:15:14.297Z" },
{ url = "https://files.pythonhosted.org/packages/01/8a/e2d4332ae18d6383376e75141cd914256bee12c3cc439f42260eb176ceb9/onnxruntime-1.24.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:76c44fc9a89dcefcd5a4ab5c6bbbb9ff1604325ab2d5d0bc9ff5a9cba7b37f4a", size = 15027167, upload-time = "2026-02-19T17:13:21.92Z" },
{ url = "https://files.pythonhosted.org/packages/35/af/ad86cfbfd65d5a86204b3a30893e92c0cf3f1a56280efc5a12e69d81f52d/onnxruntime-1.24.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:09aa6f8d766b4afc3cfba68dd10be39586b49f9462fbd1386c5d5644239461ca", size = 17106547, upload-time = "2026-02-19T17:14:05.758Z" },
{ url = "https://files.pythonhosted.org/packages/ee/62/9d725326f933bf8323e309956a17e52d33fb59d35bb5dda1886f94352938/onnxruntime-1.24.2-cp312-cp312-win_amd64.whl", hash = "sha256:ebcee9276420a65e5fa08b05f18379c2271b5992617e5bdc0d0d6c5ea395c1a1", size = 12506161, upload-time = "2026-02-19T17:14:59.377Z" },
{ url = "https://files.pythonhosted.org/packages/aa/a9/7b06efd5802db881860d961a7cb4efacb058ed694c1c8f096c0c1499d017/onnxruntime-1.24.2-cp312-cp312-win_arm64.whl", hash = "sha256:8d770a934513f6e17937baf3438eaaec5983a23cdaedb81c9fc0dfcf26831c24", size = 12169884, upload-time = "2026-02-19T17:14:49.962Z" },
- { url = "https://files.pythonhosted.org/packages/9c/98/8f5b9ae63f7f6dd5fb2d192454b915ec966a421fdd0effeeef5be7f7221f/onnxruntime-1.24.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:038ebcd8363c3835ea83eed66129e1d11d8219438892dfb7dc7656c4d4dfa1f9", size = 17217884, upload-time = "2026-02-19T17:13:36.193Z" },
{ url = "https://files.pythonhosted.org/packages/55/e6/dc4dc59565c93506c45017c0dd3f536f6d1b7bc97047821af13fba2e3def/onnxruntime-1.24.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8235cc11e118ad749c497ba93288c04073eccd8cc6cc508c8a7988ae36ab52d8", size = 15026995, upload-time = "2026-02-19T17:13:25.029Z" },
{ url = "https://files.pythonhosted.org/packages/ac/62/6f2851cf3237a91bc04cdb35434293a623d4f6369f79836929600da574ba/onnxruntime-1.24.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e92b46cc6d8be4286436a05382a881c88d85a2ae1ea9cfe5e6fab89f2c3e89cc", size = 17106308, upload-time = "2026-02-19T17:14:09.817Z" },
{ url = "https://files.pythonhosted.org/packages/62/5a/1e2b874daf24f26e98af14281fdbdd6ae1ed548ba471c01ea2a3084c55bb/onnxruntime-1.24.2-cp313-cp313-win_amd64.whl", hash = "sha256:1fd824ee4f6fb811bc47ffec2b25f129f31a087214ca91c8b4f6fda32962b78f", size = 12506095, upload-time = "2026-02-19T17:15:02.434Z" },
@@ -5277,7 +5279,7 @@ desktop = [
{ name = "fastapi" },
{ name = "faster-whisper" },
{ name = "numpy" },
- { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
+ { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.11' and platform_machine != 'x86_64') or (python_full_version < '3.11' and sys_platform != 'darwin') or (platform_machine == 'x86_64' and sys_platform == 'darwin')" },
{ name = "pydantic" },
{ name = "python-multipart" },
{ name = "sounddevice" },
@@ -5404,7 +5406,7 @@ speech = [
{ name = "av" },
{ name = "faster-whisper" },
{ name = "numpy" },
- { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
+ { name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.11' and platform_machine != 'x86_64') or (python_full_version < '3.11' and sys_platform != 'darwin') or (platform_machine == 'x86_64' and sys_platform == 'darwin')" },
{ name = "sounddevice" },
{ name = "soundfile" },
]
@@ -5484,6 +5486,8 @@ requires-dist = [
{ name = "nvidia-ml-py", specifier = ">=12.560.30" },
{ name = "onnxruntime", marker = "python_full_version < '3.11' and extra == 'desktop'", specifier = "<1.24" },
{ name = "onnxruntime", marker = "python_full_version < '3.11' and extra == 'speech'", specifier = "<1.24" },
+ { name = "onnxruntime", marker = "platform_machine == 'x86_64' and sys_platform == 'darwin' and extra == 'desktop'", specifier = "<1.24" },
+ { name = "onnxruntime", marker = "platform_machine == 'x86_64' and sys_platform == 'darwin' and extra == 'speech'", specifier = "<1.24" },
{ name = "openai", specifier = ">=1.30" },
{ name = "openai", marker = "extra == 'inference-cloud'", specifier = ">=1.30" },
{ name = "openai", marker = "extra == 'media'", specifier = ">=1.30" },
@@ -5842,7 +5846,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -6429,7 +6434,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
dependencies = [
@@ -6493,7 +6499,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
sdist = { url = "https://files.pythonhosted.org/packages/ba/25/7c72c307aafc96fa87062aa6291d9f7c94836e43214d43722e86037aac02/protobuf-6.33.5.tar.gz", hash = "sha256:6ddcac2a081f8b7b9642c09406bc6a4290128fce5f471cddd165960bb9119e5c", size = 444465, upload-time = "2026-01-29T21:51:33.494Z" }
@@ -7648,7 +7655,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform == 'darwin'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
dependencies = [
@@ -8052,7 +8060,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -8169,7 +8178,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -8525,7 +8535,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -9387,7 +9398,8 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version == '3.11.*' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'linux' and sys_platform != 'win32'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]
@@ -9450,7 +9462,8 @@ resolution-markers = [
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'linux'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform == 'darwin'",
- "python_full_version < '3.11' and platform_machine != 's390x' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.11' and platform_machine != 's390x' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
"python_full_version < '3.11' and platform_machine == 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
"python_full_version < '3.11' and platform_machine != 's390x' and sys_platform != 'darwin' and sys_platform != 'linux'",
]