Skip to content

Commit

Permalink
garden: skip the virtualenv step in "garden setup" when "env3" alread…
Browse files Browse the repository at this point in the history
…y exists

Beside the (small) time savings, this also lets someone have an "env3"
symlink in their worktree pointing to a virtualenv created beforehand
to be setup using "garden setup".
  • Loading branch information
davvid committed Oct 19, 2024
1 parent 5abe998 commit 993cb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ trees:
black --skip-string-normalization --target-version py37 "$@" jsonpickle tests
isort --profile=black "$@" jsonpickle tests
setup: |
python3 -m venv env3
garden ${GARDEN_CMD_VERBOSE} setup/dev
test -d env3 || python3 -m venv env3
garden setup/dev ${GARDEN_CMD_VERBOSE}
setup/dev: |
${activate} pip install --editable '.[dev,docs,testing]'
setup/packaging: |
Expand Down

0 comments on commit 993cb88

Please sign in to comment.