Skip to content

Commit 3d80983

Browse files
Use --break-system-packages for pip installs on 24.04
1 parent 93cbb46 commit 3d80983

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

interbotix_ros_xsarms/install/amd64/xsarm_amd64_install.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,22 @@ function install_essential_packages() {
166166
# Install necessary core packages
167167
sudo apt-get install -yq curl git
168168
if [ "$ROS_VERSION_TO_INSTALL" == 2 ]; then
169-
pip3 install transforms3d
169+
if [ "$UBUNTU_VERSION" == "24.04" ]; then
170+
sudo pip3 install --break-system-packages transforms3d
171+
else
172+
sudo pip3 install transforms3d
173+
fi
170174
fi
171175
if [ $PY_VERSION == 2 ]; then
172176
sudo apt-get install -yq python-pip
173177
python -m pip install modern_robotics
174178
elif [ $PY_VERSION == 3 ]; then
175179
sudo apt-get install -yq python3-pip
176-
pip3 install modern_robotics
180+
if [ "$UBUNTU_VERSION" == "24.04" ]; then
181+
python3 -m pip --break-system-packages install modern_robotics
182+
else
183+
python3 -m pip install modern_robotics
184+
fi
177185
else
178186
failed "Something went wrong. PY_VERSION='$PY_VERSION', should be 2 or 3."
179187
fi

0 commit comments

Comments
 (0)