From 13e1e518f5f27a7ae9933e1f0970b99f21043f68 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Mon, 2 May 2016 17:49:32 +0900 Subject: [PATCH] Support reinstall option for pip --- src/rosdep2/platforms/pip.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rosdep2/platforms/pip.py b/src/rosdep2/platforms/pip.py index a584b249e..51d400b3f 100644 --- a/src/rosdep2/platforms/pip.py +++ b/src/rosdep2/platforms/pip.py @@ -109,4 +109,6 @@ def get_install_command(self, resolved, interactive=True, reinstall=False, quiet cmd = ['pip', 'install', '-U'] if quiet: cmd.append('-q') + if reinstall: + cmd.append('-I') return [self.elevate_priv(cmd + [p]) for p in packages]