ensurePythonDependencies creates a venv and installs packages from requirements.txt. Uses `uv` when available for faster installs, otherwise falls back to the standard `python3 -m venv` + `pip` workflow.
(dir, venv string)
| 952 | // requirements.txt. Uses `uv` when available for faster installs, otherwise |
| 953 | // falls back to the standard `python3 -m venv` + `pip` workflow. |
| 954 | func ensurePythonDependencies(dir, venv string) error { |
| 955 | return ensurePythonDependenciesTo(dir, venv, os.Stdout) |
| 956 | } |
| 957 | |
| 958 | // ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies. |
| 959 | func ensurePythonDependenciesTo(dir, venv string, w io.Writer) error { |
nothing calls this directly
no test coverage detected