-
Notifications
You must be signed in to change notification settings - Fork 160
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
python: Use FindPython cmake module instead of deprecated FindPythonInterp #227
base: develop
Are you sure you want to change the base?
Conversation
@Staudey Thanks for your contribution. I think bumping CMake to 3.12 may be acceptable at this point. But these changes cause the MSVC tests to fail. Can you please look into what's needed to make them pass? |
Thanks for the heads-up! I'll have to take another look at this because what I first thought the appveyor issue was turned out to be a red herring. |
@Staudey I'm finally returning to this PR of yours now that we've ironed out several other zfpy issues. I was able to get everything to work on my end using your changes plus two others: I'm still hesitant to merge until we can figure out why the AppVeyor tests do not pass. I've not had a chance to look into this and likely won't have time to do so in the near future. Any help you can provide with that would be greatly appreciated. |
Sorry, this PR kinda slipped my mind while I was working on other things. Thanks for the hints and I'll take another look at this soon. |
ffbbae7
to
b6da6e8
Compare
…nterp Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
Should be good now, CI was successful. I'll just push one more time to add the corresponding changes to the doc so it's up to date. |
b6da6e8
to
8cdb686
Compare
@Staudey Thank you so much for these latest updates. Before I merge, I have two comments: First, although CMake 3.12 is already very old, since zfpy is optional and must be enabled with Lines 1 to 13 in 6e82573
Let me note that there's currently an issue with Lines 287 to 294 in 8fe0059
I will deal with that separately and can take care of these conditional dependencies then. Second, the way I was able to get
I don't know if you have a way of verifying this, but it might make sense to consolidate the two macros into one and pointing to the executable instead. I don't know what the "official" solution is, but |
I see, that all makes sense. I'm going to take another stab at this tomorrow (or the day after tomorrow, depending on how much time I can find) |
This uses the
FindPython
cmake module instead of the oldFindPythonInterp
, both to future-proof and avoid certain issues (e.g. in the Solus package build the old module lead to misdetections and build failures).Unfortunately this means bumping the minimum cmake version to 3.12, which was released in July 2018. I'm not sure if this is an issue for this project.