D14914: Bindings: Use python version matching the found clang python module
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Sat Aug 18 00:08:25 BST 2018
bruns created this revision.
bruns added a reviewer: Frameworks.
Herald added projects: Frameworks, Build System.
Herald added subscribers: kde-buildsystem, kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
In case both python 2.7 and 3 are installed, but clang python bindings
are only installed for python 3, there will be no error message but
the self check will fail.
Check for clang bindings for both python2 and python3 (if installed),
and use the first one found to generate the sip bindings files.
Note, it is possible to e.g. use python2 to generate the sip binding
files (requires clang bindings), but generate bindings for python
2, 3, or both (requires matching python-devel and python-sip-devel
packages).
TEST PLAN
install python3-clang bindings
install python2-clang bindings
or one of the above
the matching python version is used to run sip_generator.py
REPOSITORY
R240 Extra CMake Modules
REVISION DETAIL
https://phabricator.kde.org/D14914
AFFECTED FILES
find-modules/FindPythonModuleGeneration.cmake
To: bruns, #frameworks
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180817/852eb212/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list