Skip to content

ENH: Compile free-threading wheels #562

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
BUILDKIT_PROGRESS: plain

- name: Build wheels
uses: pypa/cibuildwheel@v3.0.1
uses: pypa/cibuildwheel@v3.1.3

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
path: ${{ matrix.vcpkg_logs }}

- name: Build wheels
uses: pypa/cibuildwheel@v3.0.1
uses: pypa/cibuildwheel@v3.1.3
env:
# CIBW needs to know triplet for the correct install path
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
Expand Down
2 changes: 1 addition & 1 deletion ci/manylinux2014_x86_64-vcpkg-gdal.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/pypa/manylinux2014_x86_64:2025-01-11-3165879
FROM quay.io/pypa/manylinux2014_x86_64:2025.07.27-1

# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
RUN yum install -y curl unzip zip tar perl-IPC-Cmd
Expand Down
2 changes: 1 addition & 1 deletion ci/manylinux_2_28_aarch64-vcpkg-gdal.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/pypa/manylinux_2_28_aarch64:2025-01-11-3165879
FROM quay.io/pypa/manylinux_2_28_aarch64:2025.07.27-1

# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
RUN dnf -y install curl zip unzip tar ninja-build perl-IPC-Cmd
Expand Down
2 changes: 1 addition & 1 deletion ci/manylinux_2_28_x86_64-vcpkg-gdal.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/pypa/manylinux_2_28_x86_64:2025-01-11-3165879
FROM quay.io/pypa/manylinux_2_28_x86_64:2025.07.27-1

# building openssl needs IPC-Cmd (https://github.com/microsoft/vcpkg/issues/24988)
RUN dnf -y install curl zip unzip tar ninja-build perl-IPC-Cmd
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools",
"Cython>=0.29",
"Cython>=3.1",
"versioneer[toml]==0.28",
# tomli is used by versioneer
"tomli; python_version < '3.11'",
Expand All @@ -26,12 +26,13 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
]
requires-python = ">=3.9"
dependencies = ["certifi", "numpy", "packaging"]

[project.optional-dependencies]
dev = ["cython"]
dev = ["cython>=3.1"]
test = ["pytest", "pytest-cov"]
benchmark = ["pytest-benchmark"]
geopandas = ["geopandas"]
Expand All @@ -41,11 +42,12 @@ Home = "https://pyogrio.readthedocs.io/"
Repository = "https://github.com/geopandas/pyogrio"

[tool.cibuildwheel]
skip = ["pp*", "*musllinux*"]
skip = ["*musllinux*"]
archs = ["auto64"]
manylinux-x86_64-image = "manylinux-x86_64-vcpkg-gdal:latest"
manylinux-aarch64-image = "manylinux-aarch64-vcpkg-gdal:latest"
build-verbosity = 3
enable = ["cpython-freethreading"]

[tool.cibuildwheel.linux.environment]
VCPKG_INSTALL = "$VCPKG_INSTALLATION_ROOT/installed/$VCPKG_DEFAULT_TRIPLET"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_gdal_config():
Extension("pyogrio._ogr", ["pyogrio/_ogr.pyx"], **ext_options),
Extension("pyogrio._vsi", ["pyogrio/_vsi.pyx"], **ext_options),
],
compiler_directives={"language_level": "3"},
compiler_directives={"language_level": "3", "freethreading_compatible": True},
compile_time_env=compile_time_env,
)

Expand Down
Loading