feat: update installation scripts to pre-install fastmcp for successful rosdep upgrades
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user