feat: pre-install typing-extensions to ensure smooth upgrades for apt-installed packages

This commit is contained in:
Даниил Грабарь
2026-06-14 16:17:27 +03:00
parent 0fe84a907f
commit 7d508765d0
3 changed files with 16 additions and 0 deletions
+4
View File
@@ -62,6 +62,10 @@ sudo mkdir -p /root/.config/pip
if ! sudo grep -qs 'break-system-packages' /root/.config/pip/pip.conf 2>/dev/null; then
printf '[global]\nbreak-system-packages = true\n' | sudo tee -a /root/.config/pip/pip.conf > /dev/null
fi
# rosdep uses `pip install -U` which tries to upgrade apt-installed packages that
# have no pip RECORD file (e.g. typing-extensions). Pre-installing via pip creates
# the RECORD so subsequent upgrades succeed.
sudo pip3 install --break-system-packages --ignore-installed typing-extensions
PROGRESS 100 "Done"
echo "ROS2 Jazzy Desktop installed successfully."