diff mbox series

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

Message ID 20250623205434.954680-1-alperyasinak1@gmail.com
State New
Headers show
Series [meta-python] python3-pandas: Fix contains reference to TMPDIR [buildpaths] error | expand

Commit Message

Alper Ak June 23, 2025, 8:54 p.m. UTC
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>
---
 meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
index c7e3ec8fec..b817b0538d 100644
--- a/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
@@ -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 "