Skip to content

Commit

Permalink
tidy venv usage in install.sh (#18778)
Browse files Browse the repository at this point in the history
* tidy venv usage in `install.sh`

* Update install.sh

* Update install.sh
  • Loading branch information
altendky authored Oct 30, 2024
1 parent 8f0cd0e commit 6a20ef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ else
fi

if [ ! -f "activate" ]; then
ln -s venv/bin/activate .
ln -s .venv/bin/activate .
fi

if [ -z "$EDITABLE" ]; then
Expand All @@ -194,11 +194,11 @@ fi

if [ -n "$PLOTTER_INSTALL" ]; then
set +e
PREV_VENV="$VIRTUAL_ENV"
export VIRTUAL_ENV="venv"
# shellcheck disable=SC1091
. .venv/bin/activate
./install-plotter.sh bladebit
./install-plotter.sh madmax
export VIRTUAL_ENV="$PREV_VENV"
deactivate
set -e
fi

Expand Down

0 comments on commit 6a20ef2

Please sign in to comment.