This message was deleted.
# general
s
This message was deleted.
d
If all the projects are in the same repo, you can have the virtualenv reference a parent directory (
../.venv
)
r
Thanks for the suggestion, but they are not - they are in individual repos that may or may not be cloned to the same parent directory - that’s up to each team member.
d
hmm. I vaguely remember using the
PULUMI_PYTHON_CMD
envvar in the past to work around a venv issue, it should let you point to the python binary in the venv itself
symlinks may also work
r
Thanks, the
PULUMI_PYTHON_CMD
option works, but is mutually exclusive with the use of
virtualenv
. When both are defined, first venv is created and then the path in
PULUMI_PYTHON_CMD
is appended to the
virtualenv
path (even though it’s an absolute path):
Copy code
error: failed to discover plugin requirements: calling `python -m pip list -v --format json`: fork/exec /Users/name/work/ci/infra/microk8s/venv/bin/Users/name/pulumi-venv/bin/python3.9: no such file or directory
so this is an option, but then one has to manage the virtualenv themselves without pulumi creating it for them if it does not yet exist. Symlinks seem to work. A little of extra hassle, but that’s manageable, thanks