Skip to content

Commit

Permalink
hammer method 2
Browse files Browse the repository at this point in the history
  • Loading branch information
berndgassmann committed Jan 30, 2024
1 parent bfa7d91 commit e332208
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,24 @@ 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
sudo apt autoremove python3 -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10
fi
fi

# 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 (( COMPILE_BOOST )); then
pushd dependencies
wget "https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/${BOOST_PACKAGE}.tar.gz"
Expand Down

0 comments on commit e332208

Please sign in to comment.