Skip to content

Commit

Permalink
hammer method
Browse files Browse the repository at this point in the history
  • Loading branch information
berndgassmann committed Jan 30, 2024
1 parent 236f8fb commit bfa7d91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ fi

sudo apt-get install -y --no-install-recommends python-is-python3 python${PYTHON_BINDING_VERSION}-dev libpython${PYTHON_BINDING_VERSION}-dev
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python${PYTHON_BINDING_VERSION}
# to handle some error on missing pip dependencies
sudo pip${PYTHON_BINDING_VERSION} install testresources
#sudo python${PYTHON_BINDING_VERSION} -m pip install --upgrade pip
sudo pip${PYTHON_BINDING_VERSION} install --upgrade setuptools==59.6.0
sudo pip${PYTHON_BINDING_VERSION} install colcon-common-extensions xmlrunner pygccxml pyplusplus

if [ `lsb_release -a | grep Release | grep 20.04 | wc -l` == 1 ]; then
sudo apt autoremove python2 -y
if [ "${BOOST_VERSION}" != "" -a "${PYTHON_BINDING_VERSION}" == "3.10" ]; then
# for some reason boost bootstrap is not able to derive the correct python version from the python binary;
# it always reports python3.8
# therefore try the hammer methon and remove standard python version from the system
sudo apt autoremove python3.8 -y
fi
fi

if (( COMPILE_BOOST )); then
Expand Down

0 comments on commit bfa7d91

Please sign in to comment.