The CFFI extension was built with py_limited_api=False, producing version-specific .so files (e.g., cpython-312 on Linux, cpython-314 on macOS). This caused import failures when the build Python version didn't match the runtime version. Switch to py_limited_api=True to produce _raylib_cffi.abi3.so which works across Python 3.x versions. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
420 B
TOML
17 lines
420 B
TOML
[build-system]
|
|
requires = ["setuptools>=64", "wheel", "cffi>=1.17.1"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "raylib"
|
|
version = "5.5.0.4"
|
|
description = "raylib + pyray Python bindings (commaai fork)"
|
|
requires-python = ">=3.8"
|
|
dependencies = ["cffi>=1.17.1"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["raylib*", "pyray*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
raylib = ["install/**/*", "_raylib_cffi*.so"]
|