From 962a662808a3bd9986be548d3c126f07c594b59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Mon, 7 Apr 2025 22:05:31 +0200 Subject: [PATCH] CI Maybe fix Windows free-threaded --- pyproject.toml | 1 - scripts/cibw_before_build_windows.sh | 5 ++--- scripts/cibw_before_test_windows.sh | 6 ------ 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 scripts/cibw_before_test_windows.sh diff --git a/pyproject.toml b/pyproject.toml index b7d53b0d8934a..c6e339e70efdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,7 +161,6 @@ before-build = "PACKAGE_DIR={package} bash {package}/scripts/cibw_before_build.s [tool.cibuildwheel.windows] before-build = "pip install delvewheel && bash {package}/scripts/cibw_before_build_windows.sh" -before-test = "bash {package}/scripts/cibw_before_test_windows.sh" test-command = """ set PANDAS_CI='1' && \ python -c "import pandas as pd; \ diff --git a/scripts/cibw_before_build_windows.sh b/scripts/cibw_before_build_windows.sh index f9e1e68d8efba..8f001db566a1d 100644 --- a/scripts/cibw_before_build_windows.sh +++ b/scripts/cibw_before_build_windows.sh @@ -5,10 +5,9 @@ for file in $PACKAGE_DIR/LICENSES/*; do done # TODO: Delete when there's a PyPI Cython release that supports free-threaded Python 3.13 -# and a NumPy Windows wheel for the free-threaded build on PyPI. FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")" if [[ $FREE_THREADED_BUILD == "True" ]]; then python -m pip install -U pip - python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy cython - python -m pip install ninja meson-python versioneer[toml] + python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython + python -m pip install ninja meson-python versioneer[toml] numpy fi diff --git a/scripts/cibw_before_test_windows.sh b/scripts/cibw_before_test_windows.sh deleted file mode 100644 index 8878e3950452f..0000000000000 --- a/scripts/cibw_before_test_windows.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# TODO: Delete when there's a NumPy Windows wheel for the free-threaded build on PyPI. -FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")" -if [[ $FREE_THREADED_BUILD == "True" ]]; then - python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy -fi