Bindings: Check if bindings can be generated for a specific python version

Authored by bruns on Aug 17 2018, 7:02 PM.

Description

Bindings: Check if bindings can be generated for a specific python version

Summary:
The generated C++ sources include <sip.h>, so it must be available.
Check for it in the version specific directories and fall back to
the default include directories.

Test Plan:
install python2-devel and python3-devel
install one of python{x}-sip-devel

bindings should be generated for the matching python version.

Reviewers: Frameworks, arojas

Reviewed By: arojas

Subscribers: arojas, kde-frameworks-devel, kde-buildsystem

Tags: Frameworks, Build System

Differential Revision: https://phabricator.kde.org/D14915