Skip to content

Commit

Permalink
Use default value for VIRTUAL_ENV if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Nov 2, 2023
1 parent 8f6ca0b commit 80a5da9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ apt_install \
swig

# Setup a virtualenv to install things into
python3 -m venv ${VIRTUAL_ENV}

# Put things under /opt/venv, if nothing else is specified
export VIRTUAL_ENV="${VIRTUAL_ENV:=/opt/venv}"
export PATH=${VIRTUAL_ENV}:${PATH}

python3 -m venv ${VIRTUAL_ENV}

# Upgrade version of pip inside the virtualenv
python3 -m pip --no-cache-dir install --upgrade \
pip
Expand Down

0 comments on commit 80a5da9

Please sign in to comment.