Skip to content

Commit

Permalink
Use yocto PYTHON_BASEVERSION variable to build PYTHONPATH
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Street <stephen@redrocketcomputing.com>
  • Loading branch information
sgstreet committed Oct 3, 2024
1 parent 9cd1246 commit 2734272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-ros2/classes/ros_ament_cmake.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export AMENT_PREFIX_PATH="${STAGING_DIR_HOST}${prefix};${STAGING_DIR_NATIVE}${pr

inherit cmake python3native

PYTHONPATH:prepend:class-nativesdk = "${STAGING_DIR_NATIVE}/opt/ros/${ROS_DISTRO}/lib/python3.12/site-packages:"
PYTHONPATH:prepend:class-nativesdk = "${STAGING_DIR_NATIVE}/opt/ros/${ROS_DISTRO}/lib/python${PYTHON_BASEVERSION}/site-packages:"

FILES:${PN}:prepend = " \
${datadir}/ament_index \
Expand Down

0 comments on commit 2734272

Please sign in to comment.