-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
CI Add CPython 3.13 free-threaded manylinux wheel #29247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,13 @@ jobs: | |
python: 312 | ||
platform_id: manylinux_x86_64 | ||
manylinux_image: manylinux2014 | ||
- os: ubuntu-latest | ||
python: 313t | ||
platform_id: manylinux_x86_64 | ||
manylinux_image: manylinux2014 | ||
# TODO: remove next line when Python 3.13 is released | ||
prerelease_pythons: True | ||
free_threaded_support: True | ||
|
||
# MacOS x86_64 | ||
- os: macos-12 | ||
|
@@ -154,7 +161,8 @@ jobs: | |
|
||
- name: Build and test wheels | ||
env: | ||
CIBW_PRERELEASE_PYTHONS: ${{ matrix.prerelease }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened to the It looked like this PR was renaming it from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think |
||
CIBW_PRERELEASE_PYTHONS: ${{ matrix.prerelease_pythons }} | ||
CIBW_FREE_THREADED_SUPPORT: ${{ matrix.free_threaded_support }} | ||
CIBW_ENVIRONMENT: SKLEARN_SKIP_NETWORK_TESTS=1 | ||
SKLEARN_BUILD_PARALLEL=3 | ||
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} | ||
|
@@ -167,7 +175,8 @@ jobs: | |
CIBW_CONFIG_SETTINGS_WINDOWS: "setup-args=--vsenv" | ||
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: bash build_tools/github/repair_windows_wheels.sh {wheel} {dest_dir} | ||
CIBW_BEFORE_TEST_WINDOWS: bash build_tools/github/build_minimal_windows_image.sh ${{ matrix.python }} | ||
CIBW_TEST_REQUIRES: pytest pandas | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_BEFORE_TEST: bash {project}/build_tools/wheels/cibw_before_test.sh | ||
CIBW_TEST_COMMAND: bash {project}/build_tools/wheels/test_wheels.sh | ||
CIBW_TEST_COMMAND_WINDOWS: bash {project}/build_tools/github/test_windows_wheels.sh ${{ matrix.python }} | ||
CIBW_BUILD_VERBOSITY: 1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,13 @@ if [[ "$GITHUB_EVENT_NAME" == "schedule" || "$CIRRUS_CRON" == "nightly" ]]; then | |
export CIBW_BUILD_FRONTEND='pip; args: --pre --extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"' | ||
fi | ||
|
||
if [[ "$CIBW_FREE_THREADED_SUPPORT" =~ [tT]rue ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The regex here is because I am not too sure about yaml value plus its env var translation. It looks like you can use |
||
# Numpy, scipy, Cython only have free-threaded wheels on scientific-python-nightly-wheels | ||
# TODO: remove this after CPython 3.13 is released (scheduled October 2024) | ||
# and our dependencies have free-threaded wheels on PyPI | ||
export CIBW_BUILD_FRONTEND='pip; args: --pre --extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"' | ||
fi | ||
|
||
# The version of the built dependencies are specified | ||
# in the pyproject.toml file, while the tests are run | ||
# against the most recent version of the dependencies | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")" | ||
if [[ $FREE_THREADED_BUILD == "True" ]]; then | ||
# TODO: remove when numpy and scipy have releases with free-threaded wheels | ||
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy scipy | ||
else | ||
# There is no pandas free-threaded wheel at the time of writing, so we only | ||
# install pandas in other builds | ||
# TODO: adapt when there is a pandas free-threaded wheel | ||
python -m pip install pandas | ||
fi |
Uh oh!
There was an error while loading. Please reload this page.