Skip to content
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 #601

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

roehling
Copy link

This PR makes the customized Python path scheme logic in colcon contingent on an install prefix other than /usr.

This makes colcon more distribution-friendly and prevents the accidental overwriting of system packages in case someone decides to install their packages to /usr. There is no other change in behavior.

roehling added a commit to roehling/ament_cmake that referenced this pull request Nov 27, 2023
[ 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]>
@cottsay
Copy link
Member

cottsay commented Feb 5, 2024

(Discussion on how to move forward with this change is ongoing in ament/ament_cmake#496)

roehling added a commit to roehling/ament_cmake that referenced this pull request Feb 21, 2024
[ 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]>
This PR makes the customized Python path scheme logic in colcon
contingent on an install prefix other than `/usr`.

This makes colcon more distribution-friendly and prevents the accidental
overwriting of system packages in case someone decides to install their
packages to `/usr`. There is no other change in behavior.

Signed-off-by: Timo Röhling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants