Skip to contentSkip to conversation

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

PATCH New Alper Ak 1 participant 1 message Jun 23, 2025

lore
Share & tools
lore

Alper Ak

author
#0 lore raw

PATCH 1/1 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]

---
 meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb +4 -0
index c7e3ec8fec..b817b0538d 100644
@@ -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 "
Signature · 1 line
2.43.0