python3-pandas: Fix contains reference to TMPDIR [buildpaths] error

Ensures TMPDIR is removed before packaging.

ERROR: python3-pandas-2.2.3-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c in package python3-pandas-src contains reference to TMPDIR [buildpaths]

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alper Ak
2025-06-23 23:54:34 +03:00
committed by Khem Raj
parent 5e04477eff
commit 389a2e48a8

View File

@@ -41,4 +41,8 @@ do_compile:append() {
sed -i 's|${WORKDIR}/pandas-${PV}/|${TARGET_DBGSRC_DIR}/|g'
}
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
}
EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include "