Skip to content

Commit

Permalink
Back down to Python 3.11 and run pipx with a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lanctot committed Nov 14, 2023
1 parent bfb7a9c commit 6244b42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
# TODO(lanctot): Set this to macos-13 once these runnings are no longer in beta
- os: macos-13-xlarge
OS_TYPE: "Darwin"
CI_PYBIN: python3.12
OS_PYTHON_VERSION: 3.12
CI_PYBIN: python3.11
OS_PYTHON_VERSION: 3.11
CIBW_ENVIRONMENT: "OPEN_SPIEL_BUILDING_WHEEL='ON' OPEN_SPIEL_BUILD_WITH_ACPC='ON' OPEN_SPIEL_BUILD_WITH_HANABI='ON' OPEN_SPIEL_BUILD_WITH_ROSHAMBO='ON'"
CIBW_BUILD: cp39-macosx_arm64 cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64
env:
Expand All @@ -71,6 +71,7 @@ jobs:
run: |
pwd
uname -a
[[ "${OS_TYPE}" = "Darwin" ]] && brew install pipx
[[ "${OS_TYPE}" = "Darwin" ]] && brew install python@${OS_PYTHON_VERSION}
[[ "${OS_TYPE}" = "Darwin" ]] && brew link --force python@${OS_PYTHON_VERSION}
which g++
Expand All @@ -93,8 +94,7 @@ jobs:
${CI_PYBIN} -m pip install cibuildwheel==2.16.2
- name: Build sdist
run: |
[[ "${OS_TYPE}" = "Darwin" ]] && brew install pipx
pipx run build --sdist
pipx run build --sdist --python python${OS_PYTHON_VERSION}
twine check dist/*.tar.gz
# Build all the wheels and run the basic tests (within the docker images)
Expand Down
2 changes: 1 addition & 1 deletion open_spiel/scripts/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [[ "$MODE" = "full" ]]; then
elif [[ "$OS" = "Darwn" && "$OS_PYTHON_VERSION" = "3.9" ]]; then
${PYBIN} -m pip install wheelhouse/open_spiel-*-cp39-cp39-macosx_10_9_x86_64.whl
else
${PYBIN} -m pip install wheelhouse/open_spiel-*-cp312-cp312-macosx_13_6_arm64.whl
${PYBIN} -m pip install wheelhouse/open_spiel-*-cp311-cp311-macosx_13_6_arm64.whl
fi
fi

Expand Down

0 comments on commit 6244b42

Please sign in to comment.