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

Use python executable variable instead of hardcode python3 #239

Merged
merged 5 commits into from
Sep 18, 2021

Conversation

j-rivero
Copy link
Contributor

This should prepare the software for gazebo-tooling/release-tools#508. Note that CI won't run the python/ruby test on Mac/Windows until #508 is ready.

@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome labels Sep 16, 2021
@chapulina chapulina added beta Targeting beta release of upcoming collection bug Something isn't working labels Sep 16, 2021
@@ -110,7 +110,7 @@ if (PYTHONLIBS_FOUND)

foreach (test ${python_tests})
add_test(NAME ${test}.py COMMAND
python3 ${CMAKE_SOURCE_DIR}/src/python/${test}.py)
"${Python3_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/src/python/${test}.py")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which cmake call is providing this variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find_package(Python3) here https://github.com/ignitionrobotics/ign-math/pull/239/files#diff-43c9042647d14a73e4061f77bba19ee368fd059a7e0c6086063f7646e2b2aabbR69. Umm, that call is conditionally scoped, I thought it was used in the root CMakeLists.txt but it is the old find_package(PythonLibs). We don't have find_package(Python3) in Bionic, I changed the code to use old PYTHON_EXECUTABLE variable.

@codecov
Copy link

codecov bot commented Sep 18, 2021

Codecov Report

Merging #239 (3ddca4e) into ign-math6 (e311b3b) will not change coverage.
The diff coverage is n/a.

❗ Current head 3ddca4e differs from pull request most recent head 19a927d. Consider uploading reports for the commit 19a927d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           ign-math6     #239   +/-   ##
==========================================
  Coverage      99.40%   99.40%           
==========================================
  Files             66       66           
  Lines           6185     6185           
==========================================
  Hits            6148     6148           
  Misses            37       37           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e311b3b...19a927d. Read the comment docs.

Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works on macOS for me now

@scpeters scpeters merged commit e431c4a into ign-math6 Sep 18, 2021
@scpeters scpeters deleted the use_python_interpreter branch September 18, 2021 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress Gazebo 1️1️ Dependency of Gazebo classic version 11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants