ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies.
(dir, venv string, w io.Writer)
| 957 | |
| 958 | // ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies. |
| 959 | func ensurePythonDependenciesTo(dir, venv string, w io.Writer) error { |
| 960 | venvDir := pythonVenvDir(venv) |
| 961 | venvPath := filepath.Join(dir, venvDir) |
| 962 | |
| 963 | if hasUV() { |
| 964 | return ensurePythonDependenciesUV(dir, venvPath, w) |
| 965 | } |
| 966 | return ensurePythonDependenciesPip(dir, venvPath, w) |
| 967 | } |
| 968 | |
| 969 | // ensurePythonDependenciesUV uses `uv` to create the venv and install packages. |
| 970 | func ensurePythonDependenciesUV(dir, venvPath string, w io.Writer) error { |
no test coverage detected