Skip to content

Automation foundation model for tiny devices: 2-bit, 8-29 MB, tool calls, ASR, structured extraction and embeddings on phones, wearables, smart homes, robots, cars and microcontrollers.

fix: install the mic extra in the setup scripts

HenryNdubuaku1c5641cd40ad
diff --git a/setup b/setup
index 61c8446..0b60d00 100755
--- a/setup
+++ b/setup
@@ -31,7 +31,7 @@ source "$VENV_DIR/bin/activate"
if [ "$UV_INSTALL" = "pip install" ]; then
pip install --upgrade pip -q
fi
-$UV_INSTALL -e ".[train,whistle]" -q
+$UV_INSTALL -e ".[train,mic]" -q
if command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi >/dev/null 2>&1; then
echo "NVIDIA GPU detected; installing gpu extras..."
diff --git a/setup.bat b/setup.bat
index c63f598..53a885a 100644
--- a/setup.bat
+++ b/setup.bat
@@ -19,6 +19,6 @@ if not exist "%VENV_DIR%\Scripts\python.exe" %PYTHON_CMD% -m venv "%VENV_DIR%"
call "%VENV_DIR%\Scripts\activate.bat"
python -m pip install --upgrade pip -q
-python -m pip install -e ".[train,whistle]" -q
+python -m pip install -e ".[train,mic]" -q
needle --help
diff --git a/tests/test_packaging.py b/tests/test_packaging.py
index 56c7a69..4069535 100644
--- a/tests/test_packaging.py
+++ b/tests/test_packaging.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import re
from pathlib import Path
import pytest
@@ -31,4 +32,12 @@ def test_training_dependencies_are_not_required_for_runtime() -> None:
if line.strip() and not line.startswith("#") and not line.startswith("-r ")
}
assert requirements == runtime
- assert train_requirements == training
\ No newline at end of file
+ assert train_requirements == training
+
+
+def test_setup_scripts_install_extras_that_exist() -> None:
+ root = Path(__file__).parents[1]
+ extras = set(tomllib.loads((root / "pyproject.toml").read_text())["project"]["optional-dependencies"])
+ for script in ("setup", "setup.bat"):
+ for group in re.findall(r"\.\[([^\]]+)\]", (root / script).read_text()):
+ assert set(group.split(",")) <= extras, script