feat: update installation scripts to pre-install fastmcp for successful rosdep upgrades

This commit is contained in:
Даниил Грабарь
2026-06-14 16:22:00 +03:00
parent 7d508765d0
commit 030e975d59
3 changed files with 15 additions and 12 deletions
+5 -4
View File
@@ -196,12 +196,13 @@ def _ensure_root_pip_break(p: process.StepProgress) -> None:
">> /root/.config/pip/pip.conf )"
)
process.stream(privilege.sudo(["bash", "-c", snippet]), on_line=p.log)
# rosdep calls `pip install -U <pkg>` which tries to upgrade all transitive deps,
# including packages installed by apt that have no pip RECORD file. Pre-installing
# them via pip creates the RECORD so the later upgrade can proceed cleanly.
# rosdep calls `pip install -U <pkg>` which upgrades every transitive dependency,
# including packages installed by apt that have no pip RECORD file, causing an
# uninstall failure. Pre-installing with --ignore-installed creates pip RECORD
# files for all transitive deps so the subsequent rosdep upgrade succeeds.
process.stream(
privilege.sudo(["pip3", "install", "--break-system-packages",
"--ignore-installed", "typing-extensions"]),
"--ignore-installed", "fastmcp"]),
on_line=p.log,
)