Bug#1094278: Avoid explicit Python version dependencies
control: tags -1 + wontfix
Dear Stefano,
Le dimanche 26 janvier 2025, 18:58:24 UTC+1 Stefano Rivera a écrit :
> Source: kdevelop-python
> Version: 24.12.1-1
> Severity: normal
> Control: block 1094277 with -1
>
> $ grep-dctrl -s Package,Build-Depends -F Build-Depends python3.12
> ...
> Package: kdevelop-python
> Build-Depends: cmake (>= 3.16~), debhelper-compat (= 13), dh-sequence-kf5, extra-cmake-modules (>= 5.78.0~), gettext, qtbase5-dev (>= 5.15.0~), libkf5i18n-dev (>= 5.78.0~), libkf5itemmodels-dev (>= 5.78.0~), libkf5kcmutils-dev (>= 5.78.0~), libkf5newstuff-dev (>= 5.78.0~), libkf5texteditor-dev (>= 5.78.0~), libkf5threadweaver-dev (>= 5.78.0~), kdevelop-dev (>= 4:23.08.1~), libpython3.12-dev, python3.12:any
That’s not correct for the version you’ve mentioned in the bug report.
kdevelop-python 24.12.1-1 has :
Build-Depends: debhelper-compat (= 13), dh-sequence-kf6, cmake (>= 3.19~), extra-cmake-modules (>= 6.0.0~), gettext, kdevelop-dev (>= 4:24.12~), libkf6config-dev (>= 6.0.0~), libkf6coreaddons-dev (>= 6.0.0~), libkf6i18n-dev (>= 6.0.0~), libkf6parts-dev (>= 6.0.0~), libkf6service-dev (>= 6.0.0~), libkf6texteditor-dev (>= 6.0.0~), libkf6threadweaver-dev (>= 6.0.0~), libkf6widgetsaddons-dev (>= 6.0.0~), libkf6xmlgui-dev (>= 6.0.0~), libpython3.13-dev, python3.13:any, qt6-5compat-dev (>= 6.5.0~), qt6-base-dev (>= 6.5.0~),
> Please try to avoid explicit Python versions in Build-Depends, you
> should be able to build-depend on "libpython3-dev, python3" (or
> even-better: "libpython3-all-dev, python3-all")
Kdevelop is and IDE and has specific requirements regarding python versions.
The current version has the following in its CMakeLists.txt [1] :
find_package(Python3 3.4.3...<3.14 COMPONENTS Interpreter Development REQUIRED)
So no, I’m not going to do that, I think it would be misleading and would hide the real issue that kdevelop cannot be rebuilt with just any version of Python.
[1] https://invent.kde.org/kdevelop/kdev-python/-/blob/v24.12.1/CMakeLists.txt?ref_type=tags#L45
Happy hacking,
--
Aurélien
Reply to: