diff --git a/colcon_poetry_ros/task/poetry/build.py b/colcon_poetry_ros/task/poetry/build.py index a70c686..37fe9b3 100644 --- a/colcon_poetry_ros/task/poetry/build.py +++ b/colcon_poetry_ros/task/poetry/build.py @@ -89,6 +89,10 @@ async def build(self, *, additional_hooks=None): "pip3", "install", wheel_name, + # pip will skip installation if the package version is the same + # but we want the installed version to always reflect the source + # regardless of the package version + "--force-reinstall", # Turns off Pip's check to ensure installed binaries are in the # PATH. ROS workspaces take care of setting the PATH, but Pip # doesn't know that.