285.8. kdev-python-26.08.2
Python 3 language support for KDevelop — parser, code completion, the pdb debugger and documentation files
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.0-only AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND MIT AND CC0-1.0 · 6.1 SBU · 24.3 MiB, 294 files · 44_apps, 83 of 422 · ports/core/editors/kdev-python
Homepage: https://invent.kde.org/kdevelop/kdev-python
kdev-python is KDevelop’s Python 3 language plugin: a parser built on CPython’s own, a semantic model (KDevelop’s DUChain, its store of every declaration and where it is used) with type inference, highlighting by meaning, code completion, navigation, a pdb debugger front end, style checking, and documentation files that describe the standard library and common modules to the completion.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qt5compat, kconfig, kcoreaddons, ki18n, kparts, kservice, ktexteditor, threadweaver, kwidgetsaddons, kxmlgui, kdevelop, python3.
Required by (1): kde-gear-devtools.
Sources: kdev-python-26.08.2.tar.xz (1.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kdev-python'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Libraries: libkdevpythoncompletion.so, libkdevpythonduchain.so, libkdevpythonparser.so.
Directories: /usr/share/kdevpythonsupport, /usr/share/licenses/kdev-python.
The parser links libpython from python3 and requires a Python between 3.4.3 and 3.16, exclusive, with its development headers; a bump of python3 past that window stops the configure until kdev-python follows.
The plugin asks for the KDevPlatform and KDevelop CMake packages, from kdevelop, at its own major and minor version, 6.0. KDevelop promises binary compatibility only between patch releases, so kdev-python is built from the same KDE Gear release as kdevelop and the two move together. Because a port depends on it, kdevelop is built in 43_toolkits, ahead of 44_apps, which holds this plugin.
Style checking runs the bundled codestyle.py, which imports pycodestyle; that module is not a port, so the check reports it missing and does nothing.