mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-15 02:01:37 +00:00
2e6a7a8dfd
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>
14 lines
517 B
BlitzBasic
14 lines
517 B
BlitzBasic
SUMMARY = "Python bindings for Fast Artificial Neural Networks 2.2.0 (FANN >= 2.2.0)"
|
|
SECTION = "devel/python"
|
|
LICENSE = "LGPL-2.1-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=c73b943dc75f6f65e007c56ac6515c8f"
|
|
|
|
SRC_URI[sha256sum] = "cdca0a65ad48e08320672affe38c3dd4ea15e27821e5e1db9fa2b34299bdd41e"
|
|
|
|
SRC_URI += " file://0001-setup.py-Don-t-hardcode-swig-and-fann2-binary-locati.patch"
|
|
SRC_URI += " file://0002-fann2.i-add-py2-py3-C-API-compat-macros.patch"
|
|
|
|
inherit pypi setuptools3
|
|
|
|
DEPENDS += "swig-native libfann"
|