MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / ensurePythonDependenciesTo

Function ensurePythonDependenciesTo

cmd/pulumi.go:959–967  ·  view source on GitHub ↗

ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies.

(dir, venv string, w io.Writer)

Source from the content-addressed store, hash-verified

957
958// ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies.
959func 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.
970func ensurePythonDependenciesUV(dir, venvPath string, w io.Writer) error {

Callers 2

ensureDependenciesToFunction · 0.85
ensurePythonDependenciesFunction · 0.85

Calls 4

pythonVenvDirFunction · 0.85
hasUVFunction · 0.85

Tested by

no test coverage detected