Skip to content

Commit 7211a8c

Browse files
committed
fix(deploy): pass ros-distro to rosdep and fix pip install
by passing `--break-system-packages`
1 parent cd990b0 commit 7211a8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/deploy/tasks/install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _install_rosdeps(self, connections: Group) -> GroupResult:
135135
remote_src_path = os.path.join(self._remote_workspace, "src")
136136
print_debug(f"Gathering rosdep install commands in {remote_src_path}")
137137

138-
cmd = f"rosdep update && rosdep install --simulate --default-yes --ignore-src --from-paths {remote_src_path}"
138+
cmd = f"rosdep update && rosdep install --rosdistro jazzy --simulate --default-yes --ignore-src --from-paths {remote_src_path}"
139139
print_debug(f"Calling {cmd}")
140140
try:
141141
gather_results = connections.run(cmd, hide=hide_output())
@@ -232,7 +232,7 @@ def _pip_upgrade(self, connections: Group) -> GroupResult:
232232
"""
233233
print_debug("Upgrading pip packages")
234234

235-
cmd = f"pip3 install --upgrade -r {self._remote_workspace}/src/requirements/robot.txt"
235+
cmd = f"pip3 install --user --upgrade --break-system-packages -r {self._remote_workspace}/src/requirements/robot.txt"
236236
print_debug(f"Calling {cmd}")
237237
try:
238238
upgrade_results = connections.run(cmd, hide=hide_output())

0 commit comments

Comments
 (0)