From 83b1fb6d8502d24bbc82422667117dc3702cd59c Mon Sep 17 00:00:00 2001 From: Jiaxing Shi Date: Tue, 3 Dec 2024 11:17:44 +0800 Subject: [PATCH] Fix PYTHONPATH issue Remove override code of PYTHONPATH which makes PYTHONPATH is not available in build job. Signed-off-by: Jiaxing Shi --- meta-ros-common/classes/ros_opt_prefix.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-ros-common/classes/ros_opt_prefix.bbclass b/meta-ros-common/classes/ros_opt_prefix.bbclass index 67ce3bb971..9cad864fa2 100644 --- a/meta-ros-common/classes/ros_opt_prefix.bbclass +++ b/meta-ros-common/classes/ros_opt_prefix.bbclass @@ -31,7 +31,7 @@ inherit ${@'python3-dir' if d.getVar('ROS_PYTHON_VERSION') == '3' else 'python-d PKG_CONFIG_PATH .= ":${PKG_CONFIG_DIR}:${STAGING_DIR_HOST}${ros_libdir}/pkgconfig:${STAGING_DATADIR}/pkgconfig" PYTHON_SITEPACKAGES_DIR = "${ros_libdir}/${PYTHON_DIR}/site-packages" -export PYTHONPATH:prepend = "${STAGING_DIR_NATIVE}${PYTHON_SITEPACKAGES_DIR}:" +export PYTHONPATH = "${STAGING_DIR_NATIVE}${PYTHON_SITEPACKAGES_DIR}:" PYTHONPATH:class-native:prepend = "${PYTHON_SITEPACKAGES_DIR}:" FILES_SOLIBSDEV += " ${ros_libdir}/lib*${SOLIBSDEV}"