python3-pandas: Loosen the search path for generated file sparse.pyx.c

Hardcoded path works only when target is x86_64, but fails for other
architectures, loosen the search path regexp

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-03 18:25:34 -07:00
parent 0ee216b5ea
commit 6e54f45cd3
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -42,7 +42,7 @@ do_compile:append() {
}
do_install:prepend() {
sed -i -e 's;${S};;g' ${B}/pandas/_libs/sparse.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c
sed -i -e 's;${S};;g' ${B}/pandas/_libs/sparse.cpython-*/pandas/_libs/sparse.pyx.c
}
EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include "