From 7305d0a998bfcfb74bc7773cff7c56c220234a07 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sun, 5 Jan 2025 10:24:40 -0500 Subject: [PATCH 1/6] free-threaded-support = true --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 20a14e65..7ed5a2f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ skip = "*musllinux_aarch64 *musllinux_ppc64le" archs = ["auto"] build-frontend = "default" dependency-versions = "pinned" +free-threaded-support = true environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.2.3", LIBGIT2="/project/ci"} before-all = "sh build.sh" From d08d029a152456bee95248405e4e9b18eda0c125 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sun, 5 Jan 2025 10:20:13 -0500 Subject: [PATCH 2/6] cibuildwheel==2.22.0 (cherry picked from commit 8285741b979a591a360ba028bce62908bfe4cf6c) --- .github/workflows/wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f993a5d2..1ef19c98 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -32,7 +32,7 @@ jobs: platforms: all - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.21.3 + run: python -m pip install cibuildwheel==2.22.0 - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse From 5a6b866f8c0d508fb1f71de7a5f9029cf4a8bf21 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sat, 4 Jan 2025 21:36:27 -0500 Subject: [PATCH 3/6] build wheels on branch free-threaded-wheel --- .github/workflows/wheels.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 1ef19c98..ee276443 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - free-threaded-wheel tags: - 'v*' From f37673037111c0f246f139e209ecbb13a44c81f1 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:41:55 -0500 Subject: [PATCH 4/6] Update build.sh - apt-get install libffi-dev --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 646e46a1..adb11c0b 100644 --- a/build.sh +++ b/build.sh @@ -63,6 +63,7 @@ if [ "$CIBUILDWHEEL" = "1" ]; then if [ -z "$OPENSSL_VERSION" ]; then apt-get install libssl-dev -y fi + apt-get install libffi-dev -y elif [ -f /usr/bin/yum ]; then yum install wget zlib-devel -y if [ -z "$OPENSSL_VERSION" ]; then From 9d10ec14dc3fd40b8fd4a5404c15d3c838089da4 Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:20:20 -0500 Subject: [PATCH 5/6] Update build.sh - yum install libffi-devel --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index adb11c0b..8a67bd9b 100644 --- a/build.sh +++ b/build.sh @@ -66,6 +66,7 @@ if [ "$CIBUILDWHEEL" = "1" ]; then apt-get install libffi-dev -y elif [ -f /usr/bin/yum ]; then yum install wget zlib-devel -y + yum install libffi-devel -y if [ -z "$OPENSSL_VERSION" ]; then yum install openssl-devel -y else From 6373ed32b3ff8d24e3840058740aca503aefa96e Mon Sep 17 00:00:00 2001 From: Kyle Gottfried <6462596+Spitfire1900@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:44:17 -0500 Subject: [PATCH 6/6] blocked until cffi support NOGIL - https://cffi.readthedocs.io/en/stable/whatsnew.html RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module '_cffi_backend', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.