-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Revert "Fix python lib install path (#207)" #236
Conversation
This reverts commit 4e92cc4.
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, because it seems there were less issues before the change
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.
I just checked with my external package that uses generate_param and the generate python file is still being placed in the directory install/my_package/lib/python3.10/site-packages/my_package/generated_parameter_file.py
, but running my test with colcon test
still fail to import it.
To test this out I purged the binary install and checked out this branch and rebuilt with colcon build
.
Weird. Did you also rebuild the generate_parameter_library packages? |
Yes I did. Sorry I corrected my post. It looks like that is the directory you are expecting this PR to place the files into but running test still fail so I'm not sure if you expected this to fix it being found when running |
Right, this one just reverts the install path to fix it. But the tests should still fail. The tests will pass if you try with #237... AND you remove the |
Sorry I missed that second PR. Yes running with #237 and removing |
@sea-bass I'm not sure this was problematic. The unit tests do run correctly now, but I get errors when I build using Steps to reproduce:
Here's my PYTHONPATH in order:
Here's my file structure: install/ |
This reverts commit 4e92cc4.
Turns out I took #207 in good faith, but it does cause problems.
Without that PR, this is what a custom module named
admittance_params.py
installs into. This is correct:With that PR, it goes to the wrong folder one level up: