[KDE/Mac] Review Request 124185: Improved Python macros for CMake
René J.V. Bertin
rjvbertin at gmail.com
Fri Jun 26 11:16:00 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124185/
-----------------------------------------------------------
Review request for KDE Software on Mac OS X and KDevelop.
Repository: kdev-python
Description
-------
CMake's default macros for finding Python (`PythonInterp` and `PythonLibs`) do not do a great job across all platforms at finding an exact Python version, at least not when multiple versions are available and esp. not if the desired version is not the default version.
This patch proposes to use another set of macros, modified from OMPL (https://bitbucket.org/ompl/ompl/src/tip/CMakeModules/FindPython.cmake) that should conform better to the requirements.
The original `FindPython.cmake` file is covered by a BSD license; the (or one of its) author made me aware of its existence himself.
Diffs
-----
CMakeLists.txt 18ecfc0
cmake/modules/FindPython.cmake PRE-CREATION
parser/CMakeLists.txt 2ac78fc
Diff: https://git.reviewboard.kde.org/r/124185/diff/
Testing
-------
For now, only on OS X 10.9.5 under MacPorts with multiple Python versions installed.
I have *not* changed the Python version acceptance logic beyond correcting the check of the `PYTHON_FOUND` boolean.
Thanks,
René J.V. Bertin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20150626/2eafc749/attachment.html>
More information about the kde-mac
mailing list