[KDE/Mac] Review Request 124185: Improved Python macros for CMake
René J.V. Bertin
rjvbertin at gmail.com
Fri Jun 26 11:44:42 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124185/
-----------------------------------------------------------
(Updated June 26, 2015, 11:44 a.m.)
Status
------
This change has been marked as submitted.
Review request for KDE Software on Mac OS X and KDevelop.
Changes
-------
Submitted with commit 8d317a7098254e3fa41932906e473028767db979 by René J.V. Bertin to branch 1.7-py3.
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/2f489964/attachment-0001.html>
More information about the kde-mac
mailing list