Skip to content

Commit 31cc332

Browse files
authored
Merge pull request #44 from HiDiHlabs/build
ABI3 only for cibuildwheel
2 parents cb98a7e + 2bc7b82 commit 31cc332

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ include = ["sainsc", "sainsc.io", "sainsc.lazykde", "sainsc.utils"]
6868
[tool.setuptools_scm]
6969

7070
[[tool.setuptools-rust.ext-modules]]
71-
target = "sainsc._utils_rust"
72-
py_limited_api = true
71+
target = "sainsc._utils_rust"
7372

7473

7574
[tool.ruff]
@@ -99,6 +98,9 @@ archs = "auto64"
9998
build = "cp311-*" # only build minimum python version because we use ABI3 builds
10099
skip = "pp*" # skip PyPy
101100

101+
[tool.cibuildwheel.config-settings]
102+
--build-option = "--py-limited-api=cp311"
103+
102104
[tool.cibuildwheel.linux]
103105
# cibuildwheel runs linux in containers so we need to install rust there
104106
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y"

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)