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

Function ensurePythonDependencies

cmd/pulumi.go:954–956  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

952// requirements.txt. Uses `uv` when available for faster installs, otherwise
953// falls back to the standard `python3 -m venv` + `pip` workflow.
954func ensurePythonDependencies(dir, venv string) error {
955 return ensurePythonDependenciesTo(dir, venv, os.Stdout)
956}
957
958// ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies.
959func ensurePythonDependenciesTo(dir, venv string, w io.Writer) error {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected