Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions packages/google-crc32c/scripts/osx/build_python_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ eval "$(pyenv init --path)"

install_python_pyenv() {
version=$1

if [ -z "$(pyenv versions --bare | grep $version)" ]; then
escaped_version="${version//./\.}"
if ! pyenv versions --bare | grep -q "^${escaped_version}\b"; then
echo "Python $version is not installed. Installing..."
pyenv install $version
echo "Python $version installed."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

set -eo pipefail

if [ -z "$(pyenv versions --bare | grep 3.10)" ]; then
if ! pyenv versions --bare | grep -q "^3\.10\b"; then
echo "Python 3.10 is not installed. Installing..."
pyenv install 3.10
fi
Expand Down
Loading