Skip to content

Commit

Permalink
Detect free-threaded Python more generically
Browse files Browse the repository at this point in the history
Co-authored-by: Sutou Kouhei <[email protected]>
  • Loading branch information
pitrou and kou authored Jan 7, 2025
1 parent d63abfd commit c0acbc5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions dev/tasks/python-wheels/github.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ jobs:
- name: Prepare
shell: bash
run: |
if [ "${PYTHON_ABI_TAG}" = "cp313t" ]; then
test_image_prefix=python-free-threaded
else
test_image_prefix=python
fi
case "${PYTHON_ABI_TAG}" in
*t)
test_image_prefix=python-free-threaded
;;
*)
test_image_prefix=python
;;
esac
echo "TEST_IMAGE_PREFIX=${test_image_prefix}" >> ${GITHUB_ENV}
- name: Build wheel
Expand Down

0 comments on commit c0acbc5

Please sign in to comment.