Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python version modularity in venv scripts #1504

Merged
merged 5 commits into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions baselines/dev/venv-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
set -e
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../

pyenv virtualenv 3.7.12 baselines-3.7.12
echo baselines-3.7.12 > .python-version
version=${1:-3.7.12}

[[ ! -d $PYENV_ROOT/versions/$version ]] && pyenv install $version
charlesbvll marked this conversation as resolved.
Show resolved Hide resolved

pyenv virtualenv $version baselines-$version
echo baselines-$version > .python-version
4 changes: 3 additions & 1 deletion baselines/dev/venv-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
set -e
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../

pyenv uninstall -f baselines-3.7.12
version=${1:-3.7.12}

pyenv uninstall -f baselines-$version
8 changes: 6 additions & 2 deletions dev/venv-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
set -e
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../

pyenv virtualenv 3.7.12 flower-3.7.12
echo flower-3.7.12 > .python-version
version=${1:-3.7.12}

[[ ! -d $PYENV_ROOT/versions/$version ]] && pyenv install $version
charlesbvll marked this conversation as resolved.
Show resolved Hide resolved

pyenv virtualenv $version flower-$version
echo flower-$version > .python-version
4 changes: 3 additions & 1 deletion dev/venv-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
set -e
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../

pyenv uninstall -f flower-3.7.12
version=${1:-3.7.12}

pyenv uninstall -f flower-$version