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

Revert python to optional dependency #132

Merged
merged 1 commit into from
Dec 10, 2020
Merged

Conversation

scpeters
Copy link
Member

The homebrew update for ignition-cmake 2.6.0 (osrf/homebrew-simulation#1222) has a failing bottle build:

It complains about being unable to find Python3. Prior to #117, there was a find_package(PythonInterp QUIET) call in ign_build_tests when setting up the check_test_ran.py test, but that was changed to REQUIRED. This reverts that change to restore python to an optional dependency and disables the cpplint portion of make codecheck if python is not available. We are already checking if python is found before using the check_test_ran.py script.

The alternative to to make python3 a required dependency, which will require updates to the documentation and packaging metadata.

Prior to #117, python was an optional dependency; this restores
that behavior.

* IgnPython: find PythonInterp with QUIET instead of REQUIRED
* IgnCodeCheck: skip cpplint if python is not found

Signed-off-by: Steve Peters <[email protected]>
@scpeters scpeters requested a review from mxgrey as a code owner December 10, 2020 09:24
@github-actions github-actions bot added 🏢 edifice Ignition Edifice 🏰 citadel Ignition Citadel 📜 blueprint Ignition Blueprint 🔮 dome Ignition Dome labels Dec 10, 2020
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Looks good to me, sorry we didn't catch this earlier.

Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for catching this @scpeters!

I just opened gazebo-tooling/action-gz-ci#26 yesterday so that we can run make codecheck in GitHub actions instead of the old tools/code_check.sh where applicable, so that we are enforcing the new code checker introduced by #117. This PR shouldn't affect this change to GitHub actions since we only run Ubuntu Bionic on actions, right?

Also, does this mean we'll probably need to do another CMake release to fix homebrew CI? Or is just merging this PR sufficient enough?

@chapulina
Copy link
Contributor

we only run Ubuntu Bionic on actions, right?

We also run Focal from Citadel onwards, and @scpeters started adding macOS actions for some libraries, but that doesn't use action-ignition-ci.

we'll probably need to do another CMake release to fix homebrew CI?

We could make a patch release, I think this fix should benefit Linux as well.

@scpeters
Copy link
Member Author

we only run Ubuntu Bionic on actions, right?

We also run Focal from Citadel onwards, and @scpeters started adding macOS actions for some libraries, but that doesn't use action-ignition-ci.

we'll probably need to do another CMake release to fix homebrew CI?

We could make a patch release, I think this fix should benefit Linux as well.

yeah I think a patch release would be prudent. I'll open a version bump PR after merging this

@scpeters
Copy link
Member Author

Looks good to me, sorry we didn't catch this earlier.

no worries; I reviewed and approved #117, so I missed it too

@scpeters scpeters merged commit 3aec72e into ign-cmake2 Dec 10, 2020
@scpeters scpeters deleted the scpeters/python_optional branch December 10, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants