Skip to content

Commit 6026c3b

Browse files
committed
fix wakeword install order
1 parent 4c15603 commit 6026c3b

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎robot_orchestrator/repos/venvs.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ def _build(self, venv_path: Path, release_dir: Path, python_config: PythonRequir
9191

9292
for line in no_deps_lines:
9393
subprocess.run([pip, "install", "--no-deps", line], check=True, capture_output=True, text=True)
94-
if package_name(line).lower() == "openwakeword":
95-
python = str(venv_python(venv_path))
96-
subprocess.run(
97-
[python, "-c", "from openwakeword.utils import download_models; download_models()"],
98-
check=True, capture_output=True, text=True,
99-
)
10094

10195
if rest_lines:
10296
self.wheelhouse.mkdir(parents=True, exist_ok=True)
@@ -113,6 +107,14 @@ def _build(self, venv_path: Path, release_dir: Path, python_config: PythonRequir
113107
text=True,
114108
)
115109

110+
for line in no_deps_lines:
111+
if package_name(line).lower() == "openwakeword":
112+
python = str(venv_python(venv_path))
113+
subprocess.run(
114+
[python, "-c", "from openwakeword.utils import download_models; download_models()"],
115+
check=True, capture_output=True, text=True,
116+
)
117+
116118

117119
class NullVenvBuilder:
118120
def ensure(

0 commit comments

Comments
 (0)