aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2018-01-05 20:13:01 +0000
committerLuca Boccassi <luca.boccassi@gmail.com>2018-01-05 20:13:01 +0000
commit904e9dca0e86a8d167f95c8ddb32784bef907ee4 (patch)
tree8ac895e4a68b0512705d57949e0f3f6804207786
parent059fe03378d04cd785c5ddf8c920f81e9fd087be (diff)
dpdk[-doc]: convert all scripts to python3
Use dh_python3 to change the shebang of all scripts to python3, and remove the python2 dependency from dpdk. Change-Id: I7baa53e1c0c9261e67fe99cd22f274417593495b Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules5
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 6e6a1eeb..c3a632ff 100644
--- a/debian/control
+++ b/debian/control
@@ -35,7 +35,7 @@ Depends: hwdata,
${python3:Depends},
${shlibs:Depends}
Recommends: ${librte:Recommends},
- python-pyelftools | python3-pyelftools,
+ python3-pyelftools,
Suggests: dpdk-doc,
dpdk-igb-uio-dkms (= ${binary:Version}),
dpdk-rte-kni-dkms (= ${binary:Version}),
diff --git a/debian/rules b/debian/rules
index 41eb0e09..20780c96 100755
--- a/debian/rules
+++ b/debian/rules
@@ -365,3 +365,8 @@ override_dh_systemd_start:
override_dh_auto_test:
+override_dh_python3:
+ # dh_python only looks in /usr/share/package_name but dpdk-doc installs in
+ # /usr/share/dpdk, so pass /usr to catch all
+ dh_python3 --shebang=/usr/bin/python3 /usr
+