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

Fix issue #678 - Skip help generation without python or python older than 2.7.8 #715

Merged
merged 2 commits into from
Jun 9, 2017

Conversation

steffengraber
Copy link
Contributor

Getting python from CMake variables and using this instead of the hard coded python. Skipping help generation if no python is found or the version is older than 2.7.8.

This is a fix for issue #678 and #712

Using cmake expressions to check for python.
Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

Looks fine to me except for a tiny details.


find_package( PythonInterp )
if ( PYTHONINTERP_FOUND )
if(${PYTHON_VERSION_STRING} VERSION_GREATER "2.7.7")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be useful to add a comment explaining why we require a version > 2.7.8, including a reference to #678. Also, add spaces around the parenthesis if ( ... ).

@heplesser heplesser added ZC: Installation DO NOT USE THIS LABEL I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) ZP: PR Created DO NOT USE THIS LABEL S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation labels May 9, 2017
@andresni
Copy link

andresni commented Jun 2, 2017

Confirmed fix for python 3.6 system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation ZC: Installation DO NOT USE THIS LABEL ZP: PR Created DO NOT USE THIS LABEL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants