summaryrefslogtreecommitdiff
path: root/debian/rules
blob: f58ee9fdbcfedbccc63b793b6dba8916fab9be0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
%:
	dh $@ --with=python2 --with-buildsystem=python_distutils

override_dh_auto_build:
	dh_auto_build
	make -C manual html

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python setup.py build_ext -i
	rm -rf build
	cp -a test-gpghome temp.gpghome
	env GNUPGHOME=temp.gpghome python setup.py check -uy
	rm -rf temp.gpghome
else
	echo NOT RUNNING TESTS DUE TO DEB_BUILD_OPTIONS
endif