python3-pandas: Add python3-wheel-native to DEPENDS
PATCH 1/1 python3-pandas: Add python3-wheel-native to DEPENDS
Fixes
| * Getting build dependencies for wheel... | | ERROR Unmet dependencies (checked against <sysroot-native>/usr/bin/nativepython3): | wheel | wanted: any | found: not installed
--- meta-python/recipes-devtools/python/python3-pandas_3.0.5.bb | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pandas_3.0.5.bb +1 -0
@@ -17,6 +17,7 @@ inherit pkgconfig pypi python_mesonpy cython DEPENDS += " \ python3-numpy \ python3-versioneer-native \ + python3-wheel-native \ " CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations"
PATCH 1/1 python3-pandas: fix stripping of build paths from generated sources
do_install failed because the glob in do_install:prepend did not match anything, leaving sed with a literal path to a non-existent file:
sed: can't read .../build/pandas/_libs/sparse.cpython-*/pandas/_libs/sparse.pyx.c: No such file or directory
meson names the per-target private directory <target>.so.p and puts the generated sources directly in it, so the actual file is
${B}/pandas/_libs/sparse.cpython-314-x86_64-linux-gnu.so.p/sparse.pyx.cThe do_compile:append hunk was meant to do the same job for every generated source, but it searched for ${WORKDIR}/pandas-${PV}, which no longer exists now that sources are unpacked under ${WORKDIR}/sources, so it silently matched nothing.
Fix the remaining pass to look for ${S} and drop the redundant (and fragile) per-file sed in do_install:prepend. Also parenthesise the -o expression so the name filter applies to both alternatives, and use -print0/-0.
--- .../recipes-devtools/python/python3-pandas_3.0.5.bb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
meta-python/recipes-devtools/python/python3-pandas_3.0.5.bb +4 -7
@@ -35,13 +35,10 @@ PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:" export PYTHONPATH do_compile:append() { - # Fix absolute paths in generated files - find ${B} -name "*.c" -o -name "*.cpp" | xargs -r \ - sed -i 's|${WORKDIR}/pandas-${PV}/|${TARGET_DBGSRC_DIR}/|g' -} - -do_install:prepend() { - sed -i -e 's;${S};;g' ${B}/pandas/_libs/sparse.cpython-*/pandas/_libs/sparse.pyx.c + # Cython embeds the path of the .pyx it was generated from into the + # generated C sources, which are shipped in the -dbg package + find ${B} \( -name "*.c" -o -name "*.cpp" \) -print0 | xargs -0 -r \ + sed -i 's|${S}/|${TARGET_DBGSRC_DIR}/|g' } EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include "