File: rules

package info (click to toggle)
python-eventlet 0.9.16-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,884 kB
  • sloc: python: 16,306; makefile: 97
file content (31 lines) | stat: -rwxr-xr-x 633 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

%:
	dh $@ --with python2,sphinxdoc

override_dh_auto_build:
	/bin/echo -e '# On Debian, we use the packaged mock\n'\
	'from __future__ import absolute_import\n'\
	'from mock import *' > tests/mock.py

	dh_auto_build

	rm -rf doc/_build/html
	PYTHONPATH=. sphinx-build -N -bhtml doc/ doc/_build/html

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for python in $(shell pyversions -r); do \
		$$python setup.py test; \
	done
endif

override_dh_compress:
	dh_compress -X.inv -X.txt

override_dh_clean:
	dh_clean
	rm -rf *.egg-info
	rm -rf doc/_build/html
	rm -f tests/mock.py