Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

January 2025 rebuild using rattler-build #501

Merged
merged 54 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
267a03c
Initial commit to move to rattler
Tobias-Fischer Dec 31, 2024
fe24e1a
Further fixes
Tobias-Fischer Jan 1, 2025
0f8c7ab
Complete local osx-arm64 rebuild
Tobias-Fischer Jan 2, 2025
0d6a61a
Near complete linux-aarch64 local rebuild
Tobias-Fischer Jan 2, 2025
4a0cdb3
Fix teb-local-planner
Tobias-Fischer Jan 2, 2025
fc0502f
Fix remaining build issues on linux-aarch64
Tobias-Fischer Jan 2, 2025
e0c429d
Do not use env -i
Tobias-Fischer Jan 2, 2025
23d235c
Obsolete patch
Tobias-Fischer Jan 3, 2025
efa223c
Fixes
Tobias-Fischer Jan 3, 2025
be381bd
Windows workaround for rattler-build
Tobias-Fischer Jan 3, 2025
a73259d
Create ros-noetic-topic-tools.patch
Tobias-Fischer Jan 3, 2025
a466697
Build additional recipes in PR
Tobias-Fischer Jan 3, 2025
c374848
Update ros-noetic-topic-tools.patch
Tobias-Fischer Jan 3, 2025
4320741
Pull in vs2019 for OpenCV compat
Tobias-Fischer Jan 3, 2025
37e6715
Also set c_compiler
Tobias-Fischer Jan 3, 2025
f6d169c
Create ros-noetic-xmlrpcpp.patch
Tobias-Fischer Jan 3, 2025
ef804e9
Update ros-noetic-xmlrpcpp.patch
Tobias-Fischer Jan 3, 2025
05c2b99
Update ros-noetic-xmlrpcpp.patch
Tobias-Fischer Jan 3, 2025
18edf72
Update ros-noetic-xmlrpcpp.patch
Tobias-Fischer Jan 3, 2025
9c1c67e
Update ros-noetic-xmlrpcpp.patch
Tobias-Fischer Jan 3, 2025
01668b3
Fixes
Tobias-Fischer Jan 3, 2025
a686169
Update ros-noetic-cv-bridge.patch
Tobias-Fischer Jan 3, 2025
1520788
Fix
Tobias-Fischer Jan 3, 2025
f1a5f29
Unvendor gtsam
Tobias-Fischer Jan 4, 2025
96d69b6
Add gtsam in PRs
Tobias-Fischer Jan 4, 2025
a65fb50
Try fix rviz issues
Tobias-Fischer Jan 4, 2025
f43e95a
fix
Tobias-Fischer Jan 4, 2025
df227d3
Fix rtabmap-conversions patch
Tobias-Fischer Jan 4, 2025
d28ddf2
Add verbose options for python-qt-binding
Tobias-Fischer Jan 4, 2025
9ab4a4a
Debug messages
Tobias-Fischer Jan 4, 2025
d579b11
Fixes
Tobias-Fischer Jan 4, 2025
02b2f24
need sip 6.8
Tobias-Fischer Jan 4, 2025
fde9c89
Fixes
Tobias-Fischer Jan 4, 2025
d2282a2
Fix
Tobias-Fischer Jan 4, 2025
94c7431
Fixes
Tobias-Fischer Jan 5, 2025
cedbee7
Test
Tobias-Fischer Jan 5, 2025
66db3e1
Try fix sip issues
Tobias-Fischer Jan 5, 2025
2403b63
Try fix sip issues
Tobias-Fischer Jan 5, 2025
911748d
Fix
Tobias-Fischer Jan 5, 2025
e3388a9
Fixes
Tobias-Fischer Jan 5, 2025
cd886f9
Fix
Tobias-Fischer Jan 5, 2025
da10d00
Fixes
Tobias-Fischer Jan 5, 2025
36bce49
Fix workflow
Tobias-Fischer Jan 5, 2025
df919e5
Fix workflow
Tobias-Fischer Jan 5, 2025
962a981
Fixes linux
Tobias-Fischer Jan 6, 2025
f957597
Fixup ninja: error: '%PREFIX%/Library/lib/lz4.lib', needed by 'devel/…
Tobias-Fischer Jan 6, 2025
3ab25a9
Full successful local build on linux-64
Tobias-Fischer Jan 6, 2025
a7afe82
Undo non-working lz4 patch
Tobias-Fischer Jan 6, 2025
958d9ce
Loccal linux-64 rebuild of all packages except jsk stuff
Tobias-Fischer Jan 7, 2025
10ffa72
Full local linux-64 rebuild
Tobias-Fischer Jan 8, 2025
fafd1ed
Full local linux-64 rebuild
Tobias-Fischer Jan 8, 2025
f9c7e0f
time::min not available on Win because of our patch
Tobias-Fischer Jan 8, 2025
1815dc5
Updates for Windows compatibility
traversaro Jan 9, 2025
55bd0ce
Fix plotjuggler line endings / tabs or whatever it is ;)
Tobias-Fischer Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
15 changes: 0 additions & 15 deletions .github/testpr_environment.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Generate CI pipelines for ROS packages

permissions:
actions: write
contents: write

env:
ROS_VERSION: 1

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,7 +20,7 @@ jobs:
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Install vinca
run: |
pip install git+https://github.com/RoboStack/vinca.git
pip install git+https://github.com/RoboStack/vinca.git@rattler-build-humble

- name: Generate recipes for linux-64
run: |
Expand Down
195 changes: 92 additions & 103 deletions .github/workflows/testpr.yml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ recipes/
*.ps1
*.json
.DS_Store
# pixi environments
.pixi
*.egg-info
output/
72 changes: 13 additions & 59 deletions .scripts/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,71 +9,25 @@ set -xeuo pipefail
export PYTHONUNBUFFERED=1
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}"
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}"
# export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support"
# export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"

cat >~/.condarc <<CONDARC
conda-build:
root-dir: /opt/conda/build_artifacts
CONDARC
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

# This doesn't work, see e.g. https://dev.azure.com/robostack/ros_pipelines/_build/results?buildId=188&view=logs&j=4e20d398-0572-5e54-89c7-6bdb9c00a59a&t=f5885ff8-badf-54b3-1543-35164851bdf3
# if grep -q libgl "recipes/${CURRENT_BUILD_PKG_NAME}.yaml"; then
# sudo yum install -y install mesa-libGL-devel
# fi

export "CONDA_BLD_PATH=/opt/conda/build_artifacts"

mkdir -p $CONDA_BLD_PATH
conda index $CONDA_BLD_PATH

conda config --set remote_max_retries 5
conda config --add channels conda-forge
conda config --add channels robostack-staging
conda config --add channels $CONDA_BLD_PATH
conda config --remove channels defaults
# conda config --set channel_priority strict

mamba update conda --yes --quiet -c conda-forge
mamba install --yes --quiet pip conda-build anaconda-client mamba boa

# setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# export PATH="$HOME/miniconda/bin:$PATH"
conda config --set anaconda_upload yes
conda config --set show_channel_urls true
conda config --set auto_update_conda false
conda config --set add_pip_as_python_dependency false

conda info
conda config --show-sources
conda list --show-channel-urls
export CONDA_BLD_PATH="/opt/conda/build_artifacts"

pwd

for recipe in ${CURRENT_RECIPES[@]}; do
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
if [[ ${recipe} == *"gazebo-ros" || ${recipe} == *"gazebo-ros-control" ]]; then
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config_old_linux_compiler.yaml
else
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
fi
done

anaconda -t ${ANACONDA_API_TOKEN} upload /opt/conda/build_artifacts/linux-*/*.tar.bz2 --force
# quetz-client "${QUETZ_URL}" /opt/conda/build_artifacts --force

# set up the condarc
cd ${FEEDSTOCK_ROOT}

# source run_conda_forge_build_setup

# # make the build number clobber
# make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
for recipe in ${CURRENT_RECIPES[@]}; do
pixi run -v rattler-build build \
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
-c robostack-jazzy -c conda-forge \
--output-dir $CONDA_BLD_PATH

# conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
# --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \

# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
# upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# fi
done

# touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}"
pixi run upload ${CONDA_BLD_PATH}/linux-*/*.conda --force
38 changes: 14 additions & 24 deletions .scripts/build_osx.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
#!/bin/bash

set -x
set -e

export FEEDSTOCK_ROOT=`pwd`
export "CONDA_BLD_PATH=$HOME/conda-bld/"

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
source ~/.bash_profile

micromamba config set remote_max_retries 5
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build."
micromamba create -n devenv --quiet --yes conda-forge-ci-setup=3 conda-build pip boa quetz-client -c conda-forge
micromamba activate devenv

set -e

export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/"

mkdir -p $CONDA_BLD_PATH
# micromamba index $CONDA_BLD_PATH
micromamba config append channels conda-forge --env
micromamba config append channels robostack-staging --env
micromamba config append channels $CONDA_BLD_PATH --env
# Remove homebrew from $PATH
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')

for recipe in ${CURRENT_RECIPES[@]}; do
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
if [[ ${recipe} == *"rviz" || ${recipe} == *"moveit-setup-assistant" || ${recipe} == *"turtlesim" ]]; then
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config_old_osx.yaml
else
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
fi
pixi run -v rattler-build build \
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
-c robostack-jazzy -c conda-forge \
--output-dir $CONDA_BLD_PATH

# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
done

anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-64/*.tar.bz2 --force
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force
34 changes: 14 additions & 20 deletions .scripts/build_osx_arm64.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
#!/bin/bash

set -x

export FEEDSTOCK_ROOT=`pwd`

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
source ~/.bash_profile

micromamba config set remote_max_retries 5

echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build."
micromamba create -n devenv --quiet --yes conda-forge-ci-setup=3 conda-build pip boa quetz-client -c conda-forge
micromamba activate devenv

set -e

export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/"
export FEEDSTOCK_ROOT=`pwd`
export "CONDA_BLD_PATH=$HOME/conda-bld/"

mkdir -p $CONDA_BLD_PATH
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

micromamba config append channels conda-forge --env
micromamba config append channels robostack-staging --env
micromamba config append channels $CONDA_BLD_PATH --env
# Remove homebrew from $PATH
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')

for recipe in ${CURRENT_RECIPES[@]}; do
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
pixi run -v rattler-build build \
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
-c robostack-jazzy -c conda-forge \
--output-dir $CONDA_BLD_PATH

# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
done

anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-arm64/*.tar.bz2 --force
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force
22 changes: 8 additions & 14 deletions .scripts/build_win.bat
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
setlocal EnableExtensions EnableDelayedExpansion
call %CONDA%\condabin\conda_hook.bat
call %CONDA%\condabin\conda.bat activate base

set CONDA_BLD_PATH=C:\bld
echo "PATH is %PATH%"
echo "CONDA_BLD_PATH is %CONDA_BLD_PATH%"

rmdir /Q/S C:\Strawberry\
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"

set "FEEDSTOCK_ROOT=%cd%"

mkdir %CONDA_BLD_PATH%
call conda index %CONDA_BLD_PATH%

rem call conda config --remove channels defaults
call conda config --add channels conda-forge
call conda config --add channels robostack-staging
call conda config --add channels %CONDA_BLD_PATH%
:: call conda config --set channel_priority strict

:: Enable long path names on Windows
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f

:: conda remove --force m2-git

for %%X in (%CURRENT_RECIPES%) do (
echo "BUILDING RECIPE %%X"
cd %FEEDSTOCK_ROOT%\recipes\%%X\
boa build . -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml -m %FEEDSTOCK_ROOT%\conda_build_config.yaml
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
-c robostack-jazzy -c conda-forge ^
--output-dir %CONDA_BLD_PATH%

if errorlevel 1 exit 1
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
)

anaconda -t %ANACONDA_API_TOKEN% upload "C:\bld\win-64\*.tar.bz2" --force
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
if errorlevel 1 exit 1
59 changes: 50 additions & 9 deletions additional_recipes/build_catkin.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Generated by vinca http://github.com/seanyen/vinca.
# Generated by vinca http://github.com/RoboStack/vinca.
# DO NOT EDIT!

set -eo pipefail

CATKIN_BUILD_BINARY_PACKAGE="ON"

if [ "${PKG_NAME}" == "ros-noetic-catkin" ]; then
Expand All @@ -20,19 +22,38 @@ export LINK=$CXX
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then
PYTHON_EXECUTABLE=$PREFIX/bin/python
PKG_CONFIG_EXECUTABLE=$PREFIX/bin/pkg-config
OSX_DEPLOYMENT_TARGET="10.15"
else
PYTHON_EXECUTABLE=$BUILD_PREFIX/bin/python
PKG_CONFIG_EXECUTABLE=$BUILD_PREFIX/bin/pkg-config
OSX_DEPLOYMENT_TARGET="11.0"
fi

if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" == "1" ]]; then
export QT_HOST_PATH="$BUILD_PREFIX"
else
export QT_HOST_PATH="$PREFIX"
fi

echo "USING PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}"
echo "USING PKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}"

export ROS_PYTHON_VERSION=`$PYTHON_EXECUTABLE -c "import sys; print('%i.%i' % (sys.version_info[0:2]))"`
echo "Using Python $ROS_PYTHON_VERSION"
# Fix up SP_DIR which for some reason might contain a path to a wrong Python version
FIXED_SP_DIR=$(echo $SP_DIR | sed -E "s/python[0-9]+\.[0-9]+/python$ROS_PYTHON_VERSION/")
echo "Using site-package dir ${FIXED_SP_DIR}"

# see https://github.com/conda-forge/cross-python-feedstock/issues/24
if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
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" {} +
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
find $PREFIX/share/rosidl* -type f -exec sed -i "s~$PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~$BUILD_PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~g" {} + || true
find $PREFIX/share/rosidl* -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
find $PREFIX/lib/cmake -type f -exec sed -i "s~message(FATAL_ERROR \"The imported target~message(WARNING \"The imported target~g" {} + || true
# way around bad CPU type issues
# rm $PREFIX/bin/doxygen || echo "doxygen not found"
# rm $PREFIX/bin/dia || echo "dia not found"
# rm $PREFIX/bin/dot || echo "dot not found"
fi

# NOTE: there might be undefined references occurring
Expand All @@ -42,25 +63,34 @@ fi
export CXXFLAGS="$CXXFLAGS -DBOOST_ERROR_CODE_HEADER_ONLY"

if [[ $target_platform =~ linux.* ]]; then
export CFLAGS="$CFLAGS -D__STDC_FORMAT_MACROS=1";
export CXXFLAGS="$CXXFLAGS -D__STDC_FORMAT_MACROS=1";
# I am too scared to turn this on for now ...
# export LDFLAGS="$LDFLAGS -lrt";
# Some qt stuff uses g++ directly - fix these use cases
ln -s $GXX $BUILD_PREFIX/bin/g++
fi

export SKIP_TESTING=ON

cmake ${CMAKE_ARGS} .. -DCMAKE_INSTALL_PREFIX=$PREFIX \
cmake ${CMAKE_ARGS} --compile-no-warning-as-error \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DBUILD_SHARED_LIBS=ON \
-DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE \
-DPython_EXECUTABLE=$PYTHON_EXECUTABLE \
-DPython3_EXECUTABLE=$PYTHON_EXECUTABLE \
-DPython3_FIND_STRATEGY=LOCATION \
-DPYTHON_INSTALL_DIR=$FIXED_SP_DIR \
-DPKG_CONFIG_EXECUTABLE=$PKG_CONFIG_EXECUTABLE \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
-DCATKIN_SKIP_TESTING=$SKIP_TESTING \
-DCATKIN_BUILD_BINARY_PACKAGE=$CATKIN_BUILD_BINARY_PACKAGE \
-DCMAKE_OSX_DEPLOYMENT_TARGET=$OSX_DEPLOYMENT_TARGET \
-G "Ninja" \
$SRC_DIR/$PKG_NAME/src/work

Expand All @@ -80,11 +110,22 @@ if [ "${PKG_NAME}" == "ros-noetic-catkin" ]; then
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
done
fi

if [ "${PKG_NAME}" == "ros-noetic-environment" ]; then
for SCRIPT in "1.ros_distro.sh" "1.ros_etc_dir.sh" "1.ros_package_path.sh" "1.ros_python_version.sh" "1.ros_version.sh"
do
mkdir -p "${PREFIX}/etc/conda/activate.d"
cp "${PREFIX}/etc/catkin/profile.d/${SCRIPT}" "${PREFIX}/etc/conda/activate.d/${SCRIPT}"
done
fi

if [ "${PKG_NAME}" == "ros-noetic-environment" ]; then
for SCRIPT in "1.ros_distro.sh" "1.ros_etc_dir.sh" "1.ros_package_path.sh" "1.ros_python_version.sh" "1.ros_version.sh"
do
cp "${PREFIX}/etc/catkin/profile.d/${SCRIPT}" "${PREFIX}/etc/conda/activate.d/${SCRIPT}"
done
fi
if [ "${PKG_NAME}" == "ros-noetic-ros-workspace" ]; then
# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
# This will allow them to be run on environment activation.
for CHANGE in "activate" "deactivate"
do
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
done
fi
Loading
Loading