D14914: Bindings: Use python version matching the found clang python module
This revision was automatically updated to reflect the committed changes. Closed by commit R240:451bc7609c2d: Bindings: Use python version matching the found clang python module (authored by bruns). CHANGED PRIOR TO COMMIT https://phabricator.kde.org/D14914?vs=39951=40794#toc REPOSITORY R240 Extra CMake Modules CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D14914?vs=39951=40794 REVISION DETAIL https://phabricator.kde.org/D14914 AFFECTED FILES find-modules/FindPythonModuleGeneration.cmake To: bruns, #frameworks, arojas Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
D14914: Bindings: Use python version matching the found clang python module
arojas accepted this revision. This revision is now accepted and ready to land. REPOSITORY R240 Extra CMake Modules REVISION DETAIL https://phabricator.kde.org/D14914 To: bruns, #frameworks, arojas Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
D14914: Bindings: Use python version matching the found clang python module
bruns added a dependency: D14912: Bindings: Make generator forward compatible with Python 3. REPOSITORY R240 Extra CMake Modules REVISION DETAIL https://phabricator.kde.org/D14914 To: bruns, #frameworks Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
D14914: Bindings: Use python version matching the found clang python module
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