Skip to content

Commit cc34acd

Browse files
committed
ENH: Compile free-threading wheels
1 parent e211838 commit cc34acd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools",
4-
"Cython>=0.29",
4+
"Cython>=3.1",
55
"versioneer[toml]==0.28",
66
# tomli is used by versioneer
77
"tomli; python_version < '3.11'",
@@ -26,12 +26,13 @@ classifiers = [
2626
"Operating System :: OS Independent",
2727
"Programming Language :: Python :: 3",
2828
"Topic :: Scientific/Engineering :: GIS",
29+
"Programming Language :: Python :: Free Threading :: 2 - Beta",
2930
]
3031
requires-python = ">=3.10"
3132
dependencies = ["certifi", "numpy", "packaging"]
3233

3334
[project.optional-dependencies]
34-
dev = ["cython"]
35+
dev = ["cython>=3.1"]
3536
test = ["pytest", "pytest-cov"]
3637
benchmark = ["pytest-benchmark"]
3738
geopandas = ["geopandas"]
@@ -46,6 +47,7 @@ archs = ["auto64"]
4647
manylinux-x86_64-image = "manylinux-x86_64-vcpkg-gdal:latest"
4748
manylinux-aarch64-image = "manylinux-aarch64-vcpkg-gdal:latest"
4849
build-verbosity = 3
50+
enable = ["cpython-freethreading"]
4951

5052
[tool.cibuildwheel.linux.environment]
5153
VCPKG_INSTALL = "$VCPKG_INSTALLATION_ROOT/installed/$VCPKG_DEFAULT_TRIPLET"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_gdal_config():
169169
Extension("pyogrio._ogr", ["pyogrio/_ogr.pyx"], **ext_options),
170170
Extension("pyogrio._vsi", ["pyogrio/_vsi.pyx"], **ext_options),
171171
],
172-
compiler_directives={"language_level": "3"},
172+
compiler_directives={"language_level": "3", "freethreading_compatible": True},
173173
compile_time_env=compile_time_env,
174174
)
175175

0 commit comments

Comments
 (0)