Skip to content

Commit c43f362

Browse files
Add ROS_DISTRO environment variable export
1 parent 7c7eae9 commit c43f362

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vinca/templates/build_ament_cmake.sh.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ echo "USING PKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}"
3232
export ROS_PYTHON_VERSION=`$PYTHON_EXECUTABLE -c "import sys; print('%i.%i' % (sys.version_info[0:2]))"`
3333
echo "Using Python ${ROS_PYTHON_VERSION}"
3434

35+
export ROS_DISTRO="@(ros_distro)"
36+
3537
# see https://github.com/conda-forge/cross-python-feedstock/issues/24
3638
if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
3739
find $PREFIX/lib/cmake -type f -exec sed -i "s~\${_IMPORT_PREFIX}/lib/python${ROS_PYTHON_VERSION}/site-packages~${BUILD_PREFIX}/lib/python${ROS_PYTHON_VERSION}/site-packages~g" {} + || true

0 commit comments

Comments
 (0)