Skip to content

Commit cba56d7

Browse files
committed
Use abi3-py37 Python ABI, avoids excessive binaries
Thanks @ctrueden for the suggestion to use abi3. At one point I read its more performant to build binaries targeting specific Python interpreter versions but I think thats for some other complex types (I also can't seem to find that text anymore). Here with cellcast and imgal we only pass primitives and arrays.
1 parent f0299dc commit cba56d7

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

Cargo.lock

Lines changed: 22 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cellcast_python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ doc = false
1515
[dependencies]
1616
cellcast = { path = "../cellcast" }
1717
imgal = "0.2.0"
18-
pyo3 = { version = "0.27.2", features = ["extension-module"]}
18+
pyo3 = { version = "0.27.2", features = ["extension-module", "abi3-py37"] }
1919
numpy = "0.27.1"

cellcast_python/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@ classifiers = [
1919
"Operating System :: Unix",
2020
"Operating System :: MacOS",
2121
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
2224
"Programming Language :: Python :: 3.9",
2325
"Programming Language :: Python :: 3.10",
2426
"Programming Language :: Python :: 3.11",
2527
"Programming Language :: Python :: 3.12",
2628
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
2730
"Programming Language :: Rust",
2831
"Topic :: Scientific/Engineering",
2932
"Topic :: Scientific/Engineering :: Image Processing",
3033
]
3134

32-
requires-python = ">=3.9"
35+
requires-python = ">=3.7"
3336
dependencies = [
3437
"numpy",
3538
]

0 commit comments

Comments
 (0)