-
Notifications
You must be signed in to change notification settings - Fork 786
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
[noetic] Rosrun uses heuristic to pick python devel-space relay script #233
Conversation
This will slow down the command since Python needs to be invoked another time. Since this will affect every invocation of |
It does seem to slow it down; I'll implement an alternative. The average run time of 6 runs on my machine (bailing before exec) is 0.498s before 06a2805, and 0.781s after. |
64e29ff
to
35c874f
Compare
|
a42c76e
to
61d017c
Compare
@dirk-thomas mind having another look at this PR? I assume this will need a |
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
Will do the branching and merging when we are about to release this repo.
@ros-pull-request-builder retest this please |
1 similar comment
@ros-pull-request-builder retest this please |
Moved the first commit into a separate PR: #239. |
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
61d017c
to
f491a91
Compare
Looks like Noetic PR job passed 🎉 |
Since this is a companion to ros/catkin#1044 which was merged onto the noetic-devel branch, I think this PR might need to be re-targeted. @dirk-thomas mind creating a |
Yes, as the
Not yet, before forking I need to land code cleanup changes. |
This is to support ros/catkin#1044 .That PR adds a devel-space relay script for installed python executables so their shebang can be rewritten to match
ROS_PYTHON_VERSION
. It has a drawback thatrosrun
will warn about non-unique executables because it sees one in the devel space and one in src space. This PR adds an exception to that warning.The first commit is a slight refactoring that should not change
rosrun
's behavior.pkg_name
andfile_name
instead of$1
and$2
because it is confusing to read when adding a function that also uses arguments.rosrun
pick the first executable if there are exactly two and one came from the--libexec
list and another came from the--share
list.