diff options
| author | Harald Sitter <sitter@kde.org> | 2016-11-08 13:08:02 (GMT) |
|---|---|---|
| committer | Harald Sitter <sitter@kde.org> | 2017-01-17 12:51:43 (GMT) |
| commit | b8f313463a6e1721a6fea51ab0a31074d6c05599 (patch) | |
| tree | 13d8d0b1a76e88c4bde02d5aac1e0aea4c7cc2ef | |
| parent | 75809be8abf03495e73e169295045fed118a8472 (diff) | |
initial stab at python3 bindingsNeon/python-bindings
- policy says libs should build py3. py2 only if an app wants it
- module path policy seems to suggest that lib/python3/ is preferred over
lib/python3.Y/ (unlike python2) so we shuffle them around via dh_install
as the ECM module used for the bindings doesn't allow overriding the
path :/
- __init__.py is meant to be packaged separately by one bindings generating
framework but shared across all of them. as a result we have a package
which only contains the __init__ and a package for the actual module
I find this fairly shit but apparently the rest of the world doesnt care
http://markmail.org/thread/soaopegt5crh2xoq
- all sip files in a module-dependent dev package
- building the bindings deps on python3 AND python3-clang AND clang
refinement:
- run dh_python3 after dh_install to mangle paths and do santization
- run dh_sip3 after dh_install to generate sip substvars
| -rw-r--r-- | debian/control | 37 | ||||
| -rw-r--r-- | debian/not-installed | 3 | ||||
| -rw-r--r-- | debian/pykf5.kitemmodels-dev.install | 1 | ||||
| -rw-r--r-- | debian/python3-pykf5.install | 1 | ||||
| -rw-r--r-- | debian/python3-pykf5.kitemmodels.install | 1 | ||||
| -rwxr-xr-x | debian/rules | 5 |
6 files changed, 48 insertions, 0 deletions
diff --git a/debian/control b/debian/control index ef45aa7..4b0eaa0 100644 --- a/debian/control +++ b/debian/control @@ -6,9 +6,14 @@ Uploaders: Maximiliano Curia <maxy@debian.org> Build-Depends: cmake (>= 2.8.12), dbus-x11, debhelper (>= 9), + dh-python, extra-cmake-modules (>= 5.28.0~), + libclang-3.8-dev, openbox, pkg-kde-tools (>= 0.15.15ubuntu1~), + pyqt5-dev, + python-clang-3.8, + python3-all, qtbase5-dev (>= 5.5.0~), qtdeclarative5-dev (>= 5.5.0~), qtscript5-dev (>= 5.5.0~) @@ -39,3 +44,35 @@ Description: additional item/view models for Qt Itemview A library which provides additional item/view models for Qt Itemview. . This package is part of KDE Frameworks 5. + +Package: python3-pykf5 +Architecture: any +Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Description: Python 3 bindings for KDE Frameworks 5 + This package does not actually provide any module but is a helper. + . + This package is part of KDE Frameworks 5. + +Package: pykf5.kitemmodels-dev +Architecture: any +Depends: pyqt5-dev, ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Description: Python 3 bindings for KItemModels + A library which provides additional item/view models for Qt Itemview. + . + This package is part of KDE Frameworks 5. + . + This package contains the development files. + +Package: python3-pykf5.kitemmodels +Architecture: any +Depends: python3-pykf5, + ${misc:Depends}, + ${python3:Depends}, + ${shlibs:Depends}, + ${sip3:Depends} +Description: Python 3 bindings for KItemModels + A library which provides additional item/view models for Qt Itemview. + . + This package is part of KDE Frameworks 5. + . + This package contains the Python 3 version of this module. diff --git a/debian/not-installed b/debian/not-installed new file mode 100644 index 0000000..1d09bf8 --- /dev/null +++ b/debian/not-installed @@ -0,0 +1,3 @@ +# Renamed from python3.x/ to python3/ +usr/lib/python3.*/dist-packages/PyKF5/__init__.py +usr/lib/python3.*/dist-packages/PyKF5/KItemModels.so diff --git a/debian/pykf5.kitemmodels-dev.install b/debian/pykf5.kitemmodels-dev.install new file mode 100644 index 0000000..d815acb --- /dev/null +++ b/debian/pykf5.kitemmodels-dev.install @@ -0,0 +1 @@ +usr/share/sip/PyKF5/KItemModels/* diff --git a/debian/python3-pykf5.install b/debian/python3-pykf5.install new file mode 100644 index 0000000..42f6f49 --- /dev/null +++ b/debian/python3-pykf5.install @@ -0,0 +1 @@ +usr/lib/python3.*/dist-packages/PyKF5/__init__.py diff --git a/debian/python3-pykf5.kitemmodels.install b/debian/python3-pykf5.kitemmodels.install new file mode 100644 index 0000000..6d020d6 --- /dev/null +++ b/debian/python3-pykf5.kitemmodels.install @@ -0,0 +1 @@ +usr/lib/python3.*/dist-packages/PyKF5/KItemModels.so diff --git a/debian/rules b/debian/rules index 8759b19..9b2a344 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,11 @@ include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk +override_dh_install: + $(overridden_command) + dh_python3 + dh_sip3 + override_dh_strip: dh_strip --dbgsym-migration='libkf5itemmodels5-dbg (<= 5.19.0-1~~)' |
