Skip to content

Commit

Permalink
Merge pull request #992 from dacook/updates
Browse files Browse the repository at this point in the history
Update pyenv-setup script
  • Loading branch information
mkllnk authored Jan 28, 2025
2 parents b66fd93 + 2809912 commit 59ecc83
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/pyenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ set -e
env_version="$(cat .python-version)"
python_version="$(cat .python-version | cut -d '-' -f3)"

if ! python --version; then
pyenv install "$python_version" --skip-existing
# Install python version
pyenv install "$python_version" --skip-existing

# Create python virtual environment
if pyenv virtualenvs 2>&1 | grep -q "not installed"; then
pyenv virtualenv "$python_version" "$env_version"
pip install -r requirements.txt
fi
pip install -r requirements.txt

0 comments on commit 59ecc83

Please sign in to comment.