[Kde-bindings] Update on PyKF5 bindings
Stephen Kelly
steveire at gmail.com
Mon May 23 20:38:49 UTC 2016
Luca Giambonini wrote:
> In data lunedì, 23 maggio 2016 00:06:15 CEST, Stephen Kelly ha scritto:
>> Luca Giambonini wrote:
>> > Test 2 was to remove also this check, by commenting the line:
>> > report_NOT_FOUND("PyQt module does not support Qt version $
>> > {Qt5Core_VERSION_MINOR}.${Qt5Core_VERSION_PATCH} for the $
>> > {CMAKE_FIND_PACKAGE_NAME} Module.")
>> >
>> > After taht I was able to build the whole pkgs!
>>
>> Thanks for doing that investigation. I was able to see where the problems
>> were and fix them.
>>
>> If you pull updates now it should just work.
>
> Thanks Steve,
> only one issue, the extra-cmake-modules submodule of the
> frameworks-bindings points to an non existent commit (7ab1cd8).
> https://github.com/steveire/extra-cmake-modules/tree/
> 7ab1cd89ca5b4c1bebb02d5ab631dd08c7eafa80
Oops, please try again now.
> An other question, the install() function in the cmake script is currently
> missing, how we can install the generated binding easly?
The FindPythonModuleGeneration.cmake function does contain install rules for
installing the bindings.
If you use the instructions in the frameworks-bindings repo, the bindings
are automatically installed to a prefix within the build directory. Note
that the frameworks-bindings repo is just a convenience, therefore it makes
decisions like that for you.
If you wish for less convenience, you can do this and change paths as you
like:
mkdir -p $HOME/dev/bindings
cd $HOME/dev/bindings
git clone git at github.com:steveire/extra-cmake-modules.git
# For whatever frameworks you like:
git clone git at github.com:steveire/kitemmodels.git
git clone git at github.com:steveire/kcoreaddons.git
git clone git at github.com:steveire/kwidgetsaddons.git
git clone git at github.com:steveire/kjobwidgets.git
cd extra-cmake-modules
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dev/bindings/prefix
make install
cd ../..
cd kitemmodels
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dev/bindings/prefix
make
make install
cd ../..
cd kcoreaddons
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dev/bindings/prefix
make
make install
cd ../..
cd kwidgetsaddons
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dev/bindings/prefix
make
make install
cd ../..
cd kjobwidgets
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dev/bindings/prefix
make
make install
cd ../..
find prefix/share/sip
find prefix/lib/python*
prefix/lib/python2.7
prefix/lib/python2.7/dist-packages
prefix/lib/python2.7/dist-packages/PyKF5
prefix/lib/python2.7/dist-packages/PyKF5/KCoreAddons.so
prefix/lib/python2.7/dist-packages/PyKF5/__init__.py
prefix/lib/python2.7/dist-packages/PyKF5/KWidgetsAddons.so
prefix/lib/python2.7/dist-packages/PyKF5/KItemModels.so
prefix/lib/python2.7/dist-packages/PyKF5/KJobWidgets.so
prefix/lib/python3.5
prefix/lib/python3.5/dist-packages
prefix/lib/python3.5/dist-packages/PyKF5
prefix/lib/python3.5/dist-packages/PyKF5/KCoreAddons.so
prefix/lib/python3.5/dist-packages/PyKF5/__init__.py
prefix/lib/python3.5/dist-packages/PyKF5/KWidgetsAddons.so
prefix/lib/python3.5/dist-packages/PyKF5/KItemModels.so
prefix/lib/python3.5/dist-packages/PyKF5/KJobWidgets.so
Thanks,
Steve.
More information about the Kde-bindings
mailing list