-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
complete refactoring of python installation #29
Conversation
Looks good to me! I like trial & error, should I simply bump the build number and let's have another go at it? |
Maybe let me try the Linux stuff locally first ... I'm scared that these changes break things |
Linux seemed fine, didn't it? Maybe let's just change Windows (which is broken anyhow). |
Hm, I just tried these changes fro linux and they resulted in an error in one of the ament packages. |
I just tried the other way around by using |
So now I went the other way -- using |
@traversaro do you know where ros2 run ... expects the scripts? With this change the regular I am not sure which bin directory this will use though ... maybe one that is again not discovered by ros2 run node... although the install-scripts stuff would hopefully work properly. |
|
I'm pretty sure I tried |
So everything looked fine with the pip install -- packages were building fine. Due to an issue with
I just tried and Starting the exe directly does not work either because for some reason the interpreter path seems to be hard coded
Our previous exe works either through ros2 run or directly, so not sure where this particular problem comes from (maybe setuptools >60?) Idk we have a couple of options to tackle this:
|
Hmm, looks like |
Switching from |
Maybe we could also figure out how to replace |
Okay, I've looked into this problem with the pip installation a little bit more, I still don't completely get why it happens but: the I will try to think more on the best solution. |
pip has both |
Actually I just saw that at the end of the day https://github.com/ament/ament_index/blob/5ce2eba781801154d93c6fd7d6f66b23e4a7182d/ament_index_python/ament_index_python/packages.py#L39 looks at AMENT_PREFIX_PATH which we set in https://github.com/RoboStack/vinca/blob/master/vinca/templates/activate.bat.in - how about simply removing /Library from there and stick with the install path that pip defaults to? This is what we do on Linux |
I have two logs here, one from I still don't properly understand what is going on wrt to the The other problem we have is that with the Maybe the better idea is to keep the |
How about going back to 7a0b122 for windows and keep pip on Linux? |
Yeah, @Tobias-Fischer I think that's what we need to do. I am still really curious to understand what exactly is going on, but that probably has to wait :) |
Should we merge it in @wolfv @traversaro? |
Hi @wolfv @traversaro - did you have a chance to test whether this works okay in Windows? If so, I'd be happy to trigger the Galactic rebuild. |
Merging, as current way is definitely broken, so it can only be an improvement. |
@Tobias-Fischer @traversaro I've completely changed the way we'd install Python packages now. This looks a lot more like what's going on in the debian packages, but I am not sure if the change is good. I think I should test that further.