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

install_python_pyenv() {
version=$1
escaped_version="${version//./\.}"
Comment thread
chalmerlowe marked this conversation as resolved.

if [ -z "$(pyenv versions --bare | grep $version)" ]; then
if [ -z "$(pyenv versions --bare | grep "^${escaped_version}\b")" ]; then
Comment thread
chalmerlowe marked this conversation as resolved.
Outdated
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 [ -z "$(pyenv versions --bare | grep "^3\.10\b")" ]; then
Comment thread
chalmerlowe marked this conversation as resolved.
Outdated
echo "Python 3.10 is not installed. Installing..."
pyenv install 3.10
fi
Expand Down
Loading