Skip to content

Commit

Permalink
correct "pip install --user" condition in development bootstrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jesteria authored Oct 6, 2019
1 parent ab0c7d9 commit 7bc56f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions develop
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,15 @@ require venv \

# python libs

PIP_FLAGS=""

if icli::check_command pyenv; then
if [ "$(pyenv version-name)" != "$VENV_NAME" ]; then
PYTHON_EXE="${PYENV_ROOT:-$HOME/.pyenv}/versions/$VENV_NAME/bin/python"
fi
elif [ -f .env/bin/activate ]; then
PYTHON_EXE=.env/bin/python
fi

PIP_FLAGS=""
if [ -z "$VIRTUAL_ENV" ]; then
elif [ -z "$VIRTUAL_ENV" ]; then
PIP_FLAGS="--user"
fi

Expand Down

0 comments on commit 7bc56f7

Please sign in to comment.