Files
meta-openembedded/meta-python/recipes-devtools/python/python3-fann2
Khem Raj 2e6a7a8dfd python3-fann2: add SWIG py2/py3 C-API compat patch
fann2.i's HELPER_ARRAY_TEMPLATE typemaps use the Python 2 C-API names
PyInt_Check/PyInt_AsLong/PyInt_FromLong. Python 3.14 no longer ships
any fallback definitions for them, so the SWIG-generated wrapper
fails to compile:

  fann2/fann2_wrap.cxx:10062:41: error: use of undeclared identifier 'PyInt_AsLong'; did you mean 'PyLong_AsLong'?

Add a patch mapping them to their PyLong_* equivalents.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-13 23:09:51 -07:00
..