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
Fixes CMake version > 3.12 python-binding build failure #13631
Fixes CMake version > 3.12 python-binding build failure #13631
Conversation
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.
Looks good. Thanks for the PR.
/rebuild |
@CorbinFoucart CI is not happy about your git name. Could you check the following page: https://github.com/dealii/dealii/wiki/Commit-authorship. |
@CorbinFoucart can you take a look @peterrum's comment. Let us know if you need any help. |
@CorbinFoucart Ping? |
Hi everyone, thanks for the ping. I will fix this in a day or so. |
I've amended the commit to include my full name. Is this fine, or should I open a new pull request? When I run git log, I see
It looks like amending the commit created another commit, after which the author name is correct. However, it looks like the CI check still fails below. |
That's the problem. You will need to squash the two commits into one to fix that. Do you know how to do it? You can take a look at https://stackoverflow.com/a/5189600 After that you will need to use |
…ated FindPythonInterp call.
0309955
to
3c0a6bb
Compare
Thanks for the patch @CorbinFoucart ! |
My build (deal.II 9.3.3, Ubuntu 18.04) with python-bindings was failing at the
cmake .
stage. Looking at theCMakeLists.txt
file and comparing against the CMake documentation, it seems that this is due to a deprecation ofFindPythonInterp
for newer versions of CMake.In order to fix the issue, I added a check based on the User's CMake version, since deal.II supports older versions. Using the new CMake functionality sets different CMake variables for Python version, so I set the existing variables based on the new variables as well. They're needed later in the file.
After making these changes, I'm able to build the library, the quicktests pass, and I'm able to import the PyDealII python library from an interpreter.