Install package to pip venv during setup_venv

On fresh pip venv, this commit will help install
the packages onto the newly create venv.
This commit is contained in:
Stanley Winata
2022-05-15 15:00:17 -07:00
parent ee54d2cabb
commit 2117c1ab39
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@@ -20,6 +20,7 @@ parts/
sdist/
var/
wheels/
wheelhouse/
share/python-wheels/
*.egg-info/
.installed.cfg

View File

@@ -29,6 +29,7 @@ if [[ -z "${CONDA_PREFIX}" ]]; then
echo "Using pip venv.. Setting up venv dir: $VENV_DIR"
$PYTHON -m venv "$VENV_DIR" || die "Could not create venv."
source "$VENV_DIR/bin/activate" || die "Could not activate venv"
PYTHON="$(which python3)"
else
echo "Found conda env $CONDA_DEFAULT_ENV. Running pip install inside the conda env"
fi