-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always pass --root to setuptools install. #1068
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. With this change I no longer see an easy-install.pth
or site.py
building currently released Noetic repos using either catkin_make install
or catkin_make_isolated install
. I did not test with catkin-tools
.
python3 src/catkin/bin/catkin_make install --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCMAKE_BUILD_TYPE=Release
python3 src/catkin/bin/catkin_make_isolated --catkin-make-args install all tests --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCMAKE_BUILD_TYPE=Release
Great, thanks for looking, @sloretz. I don't know if anything breaks in the But this definitely is an issue with explicitly-parallel tools like Obviously this change ripples out and affects all catkin python packages that have been recently switched to setuptools, but it also nicely brings
This was in a workspace that also included |
@seanyen |
This patch as it stands should have no impact on Windows at all, as it only modifies the
If Windows also has the issue that this patch seeks to correct, then something similar may need to be applied to the |
@mikepurvis Good point, thanks for clarifying. @seanyen Please double check the behavior on Windows and if necessary contribute a pull request with a similar patch for the |
Thanks for the patch! |
Note to myself: this might need to be backported to |
Cherry-picked to |
Sorry I missed this ping. I am aware of |
I believe this is the minimal change resolving #1060, which arises from the change made in #1048.
For the non-DESTDIR case:
For the DESTDIR case:
The non-DESTDIR case is what's currently broken in 0.8.0. It looks like this without the change proposed here— the shared
easy-install.pth
andsite.py
files are the core of the problem:I haven't made any alterations to the Windows version of this logic as I'm not sure if anything is needed there or how to properly test it.
FYI @dirk-thomas @sloretz