build: Python binding portability (#388)

- Specify compatibility = linux in pyproject.toml to ensure
  manylinux compatibility.
- Use abi-py310 pyo3 feature to ensure compatibility with python
  3.10 and later.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-04-07 13:18:01 -07:00
committed by GitHub
parent 77cdac0fef
commit 757edcc8fb
4 changed files with 95 additions and 31 deletions

View File

@@ -13,4 +13,8 @@ classifiers = [
dynamic = ["version"]
[tool.maturin]
features = ["pyo3/extension-module"]
binding = ["cffi"]
# See https://github.com/mayeut/pep600_compliance?tab=readme-ov-file#distro-compatibility
# GLIBC releases: https://www.sourceware.org/glibc/wiki/Glibc%20Timeline
compatibility = "manylinux_2_34"
features = ["pyo3/extension-module"]