Skip to content

Commit

Permalink
update check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jun 4, 2024
1 parent 3f9365f commit 1051786
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions scripts/osx/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ export REPO_ROOT=$(dirname ${SCRIPTS_DIR})
ls ${REPO_ROOT}/wheels

# NOTE: These are the Python.org versions of Python.
PYTHON37="/Library/Frameworks/Python.framework/Versions/3.7/bin"
PYTHON38="/Library/Frameworks/Python.framework/Versions/3.8/bin"
PYTHON39="/Library/Frameworks/Python.framework/Versions/3.9/bin"
PYTHON310="/Library/Frameworks/Python.framework/Versions/3.10/bin"
PYTHON311="/Library/Frameworks/Python.framework/Versions/3.11/bin"
PYTHON37="python3.7"
PYTHON38="python3.8"
PYTHON39="python3.9"
PYTHON310="python3.10"
PYTHON311="python3.11"
PYTHON311="python3.12"

# Make sure we have an updated `pip`.
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHON37}/python3
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHON37}

# Make sure virtualenv and delocate.
${PYTHON37}/python3 -m pip install --upgrade delocate
${PYTHON37} -m pip install --upgrade delocate
LISTDEPS_CMD="${PYTHON37}/delocate-listdeps --all --depending"
VIRTUALENV_CMD="${PYTHON37}/python3 -m venv"

${PYTHON37}/python3 -m venv venv37
${PYTHON37} -m venv venv37
curl https://bootstrap.pypa.io/get-pip.py | venv37/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp37-cp37m-macosx_10_9_x86_64.whl
venv37/bin/pip install ${WHL}
Expand All @@ -52,7 +53,7 @@ venv37/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv37

${PYTHON38}/python3 -m venv venv38
${PYTHON38} -m venv venv38
curl https://bootstrap.pypa.io/get-pip.py | venv38/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp38-cp38-macosx_10_9_x86_64.whl
venv38/bin/pip install ${WHL}
Expand All @@ -62,26 +63,35 @@ venv38/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv38

${PYTHON39}/python3 -m venv venv39
${PYTHON39} -m venv venv39
curl https://bootstrap.pypa.io/get-pip.py | venv39/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp39-cp39-macosx_10_9_x86_64.whl
venv39/bin/pip install ${WHL}
venv39/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv39

${PYTHON310}/python3 -m venv venv310
${PYTHON310} -m venv venv310
curl https://bootstrap.pypa.io/get-pip.py | venv310/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp310-cp310-macosx_10_9_x86_64.whl
venv310/bin/pip install ${WHL}
venv310/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv310

${PYTHON311}/python3 -m venv venv311
${PYTHON311} -m venv venv311
curl https://bootstrap.pypa.io/get-pip.py | venv311/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp311-cp311-macosx_10_9_x86_64.whl
venv311/bin/pip install ${WHL}
venv311/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv311


${PYTHON312} -m venv venv312
curl https://bootstrap.pypa.io/get-pip.py | venv312/bin/python3
WHL=${REPO_ROOT}/wheels/google_crc32c-${PACKAGE_VERSION}-cp312-cp312-macosx_10_9_x86_64.whl
venv312/bin/pip install ${WHL}
venv312/bin/python ${REPO_ROOT}/scripts/check_crc32c_extension.py
${LISTDEPS_CMD} ${WHL}
rm -fr venv312

0 comments on commit 1051786

Please sign in to comment.