-
Notifications
You must be signed in to change notification settings - Fork 280
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
Find the python version specified in ROS_PYTHON_VERSION #939
Conversation
Signed-off-by: Chris Lalancette <[email protected]>
If it is not set, fallback to the "default" for the platform. Signed-off-by: Chris Lalancette <[email protected]>
Could the Please describe how you have tested these changes with Python 2/3 in a workspace. |
Potentially. I'll take a look at doing that.
I have a workspace setup on Bionic that has a bunch of core packages (
Now that I have most of this going, I'm going to try to start building higher in the stack; let me know if there are other tests in particular that you think are valuable. |
Out of curiosity: do the tests pass with Python 3 for your workspace? |
Unfortunately not:
I haven't yet looked into why. |
This allows us to re-use the PYTHON_VERSION cache variable when looking at the ROS_PYTHON_VERSION environment variable. Signed-off-by: Chris Lalancette <[email protected]>
Commit ca20ea7 ends up revamping this to use |
Can you describe why this intermediate variable is necessary. If the environment variable is not defined it should evaluate to an empty string. |
Ah, I didn't realize that about CMake. OK, then we don't need the intermediate and it is even simpler. Will fix that. |
We don't need the intermediate variable since $ENV{ROS_PYTHON_VERSION} will just evaluate to an empty string if it is not set. Signed-off-by: Chris Lalancette <[email protected]>
If
ROS_PYTHON_VERSION
is defined, make catkin respect that and go looking for at least that version. If it is not specified, just fall back to whatever the platform version of Python is.