-
Notifications
You must be signed in to change notification settings - Fork 126
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
Improve Python install path detection #496
base: rolling
Are you sure you want to change the base?
Conversation
Would you mind giving an example of when this is a problem? I'm not sure when a user would choose to install packages to Colcon installs into its own install space which by default is a folder called I'm hesitant to merge this without a careful review because the logic here is working around issues we've had with patches to setuptools that differ for debian, fedora, and homebrew.
|
The main motivation for the change is to make ament more distribution-friendly by not overriding the Python schema for distribution-owned locations. As this affects the |
It doesn't feel very good to have a hard-coded check for What if we skip the scheme override when we're installing to the same prefix that Python suggests system packages install to? In other words, rather than checking if |
I like that idea, as it will also do the right thing for virtual environments. I'll update the PR(s) as soon as I find time. |
[ This is the companion PR to colcon/colcon-core#601 ] This PR makes the customized Python path scheme logic in ament_cmake_python contingent on an install prefix other than `/usr`. This makes ament more distribution-friendly and prevents the accidental overwriting of system packages in case someone decides to install their Python packages to /usr. There is no other change in behavior. Signed-off-by: Timo Röhling <[email protected]>
1b1b25b
to
143bc1e
Compare
[ This is the companion PR to colcon/colcon-core/pull/601 ]
This PR makes the customized Python path scheme logic in
ament_cmake_python
contingent on an install prefix other than/usr
.This makes ament more distribution-friendly and prevents the accidental overwriting of system packages in case someone decides to install their Python packages to
/usr
. There is no other change in behavior.