Fix virtual env path (#5992)

This commit is contained in:
Komal 2020-12-21 17:46:56 -08:00 committed by GitHub
parent 0111fb60ba
commit d0676c19a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -2,11 +2,13 @@ CHANGELOG
=========
## HEAD (Unreleased)
_(none)_
- Fix regression in `venv` creation for python policy packs.
[#5992](https://github.com/pulumi/pulumi/pull/5992)
## 2.16.0 (2020-12-21)
- Do not read plugins and policy packs into memory prior to exctraction, as doing so can exhaust
- Do not read plugins and policy packs into memory prior to extraction, as doing so can exhaust
the available memory on lower-end systems.
[#5983](https://github.com/pulumi/pulumi/pull/5983)

View file

@ -213,6 +213,7 @@ func InstallDependenciesWithWriters(root, venvDir string, showOutput bool, infoW
print("Creating virtual environment...")
// Create the virtual environment by running `python -m venv <venvDir>`.
venvDir = filepath.Join(root, venvDir)
cmd, err := Command("-m", "venv", venvDir)
if err != nil {
return err