aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorAdam Stokes <adam.stokes@ubuntu.com>2014-01-15 22:23:32 -0500
committerAdam Stokes <adam.stokes@ubuntu.com>2014-01-15 22:23:32 -0500
commit55b48fa4c5e625c74b1ffd80213b3cd72809365a (patch)
tree22c4c0f49ce670b08331b9e7d3a87de11f4a8f23 /debian/rules
parentfac1f1fc6f8bc85868aa9f97584bd865add3204b (diff)
downloadsos-55b48fa4c5e625c74b1ffd80213b3cd72809365a.tar.gz
Update debian packaging to use pybuild and prep for 3.1 release.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules18
1 files changed, 5 insertions, 13 deletions
diff --git a/debian/rules b/debian/rules
index 4b200a0d..07e7196d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,21 +1,13 @@
#!/usr/bin/make -f
DH_ALWAYS_EXCLUDE=.git
-
-%:
- dh $@ --with python3
-
-override_dh_auto_install:
- python setup.py \
- install \
- --install-lib=usr/share/sosreport/ \
+export PYBUILD_NAME=sosreport
+export PYBUILD_DISABLE_python2=1
+export PYBUILD_INSTALL_ARGS_python3=--install-lib=usr/share/sosreport/ \
--install-data=usr/ \
--install-scripts=usr/share/sosreport/ \
--root=$(CURDIR)/debian/sosreport/ \
--no-compile -O0
-override_dh_clean:
- rm -rf build/
- rm -rf dist/
- find . -name '*.pyc' -delete
-
+%:
+ dh $@ --with python3 --buildsystem=pybuild