File: rules

package info (click to toggle)
chaussette 1.3.0%2Bgit20170419%2B82ac44a-0.4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 372 kB
  • sloc: python: 1,167; makefile: 153
file content (21 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export PYBUILD_NAME=chaussette
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/examples'

%:
	dh $@ --with python3 --buildsystem=pybuild

# pybuild sets the http_proxy environment variable to prevent 'python setup.py'
# from downloading stuff from pypi, but this breaks the tests that perform 
# some GET queries, so we unset it to run tests 
override_dh_auto_test:
	http_proxy="" dh_auto_test

override_dh_installman:
	make -C docs man
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/build