[neon/kf6/kf6-kapidox/Neon/unstable] debian: use pip to install python deps
Carlos De Maine
null at kde.org
Wed Nov 8 04:01:05 GMT 2023
Git commit 46e76c1028d7cb47238b1a27f03fe324a68a30ee by Carlos De Maine.
Committed on 08/11/2023 at 05:01.
Pushed by carlosdem into branch 'Neon/unstable'.
use pip to install python deps
M +14 -4 debian/control
A +9 -0 debian/preinst
M +3 -2 debian/rules
https://invent.kde.org/neon/kf6/kf6-kapidox/-/commit/46e76c1028d7cb47238b1a27f03fe324a68a30ee
diff --git a/debian/control b/debian/control
index 60329d7..82a21a3 100644
--- a/debian/control
+++ b/debian/control
@@ -4,18 +4,28 @@ Priority: optional
Maintainer: Jonathan Esk-Riddell <jr at jriddell.org>
Build-Depends: debhelper-compat (= 13),
dh-python,
+ doxygen,
+ graphviz,
+ kf6-extra-cmake-modules,
python3,
python3-gv,
- python3-yaml
-Standards-Version: 4.1.4
+ python3-pip,
+ python3-pip-whl,
+Standards-Version: 4.6.2
Homepage: https://projects.kde.org/projects/frameworks/kapidox
Vcs-Browser: https://salsa.debian.org/qt-kde-team/kde/kapidox
Vcs-Git: https://salsa.debian.org/qt-kde-team/kde/kapidox.git
Package: kf6-kapidox
Architecture: all
-Depends: python3-jinja2, python3-yaml, ${misc:Depends}, ${python3:Depends}
-Recommends: python3-gv
+Depends: doxygen,
+ graphviz,
+ python3,
+ python3-gv,
+ python3-pip,
+ python3-pip-whl,
+ ${misc:Depends},
+ ${python3:Depends}
Description: API documentation generation tool for KDE frameworks
Framework to aid in creating API documentation for KDE Frameworks in a
standard format and style.
diff --git a/debian/preinst b/debian/preinst
new file mode 100644
index 0000000..acfe914
--- /dev/null
+++ b/debian/preinst
@@ -0,0 +1,9 @@
+#!/usr/bin/python3
+# Used to install required python deps with pip
+# Executed before primary apt install of files
+
+import os
+import subprocess
+import sys
+
+subprocess.call(["pip3", "install", "-U", "--upgrade-strategy", "eager", "-r", "requirements.frozen.txt"])
diff --git a/debian/rules b/debian/rules
index 0cd20d3..2d06437 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,6 @@
%:
dh $@ --with python3 --buildsystem=pybuild
-override_dh_auto_clean:
- -dh_auto-clean
+rm -r /usr/lib/python3/dist-packages/setuptools/
+ python3 -m pip install -U --upgrade-strategy eager -r requirements.frozen.txt
+ dh_auto_clean -O--buildsystem=pybuild --
More information about the Neon-commits
mailing list