File: rules

package info (click to toggle)
nevow 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,028 kB
  • ctags: 4,911
  • sloc: python: 20,165; makefile: 163; sh: 70; xml: 42; sql: 5
file content (27 lines) | stat: -rwxr-xr-x 816 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
export PYTHONDONTWRITEBYTECODE=yes
export PYBUILD_NAME=nevow

%:
	dh $@ --with python2,sphinxdoc --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python-nevow/usr/doc

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=debian/python-nevow/usr/lib/python2.7/dist-packages http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc debian/python-nevow/usr/share/doc/python-nevow/html
	dh_sphinxdoc
endif

override_dh_auto_test:
	ln -s doc .pybuild/pythonX.Y_2.7/build
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} /usr/bin/trial nevow formless" dh_auto_test
	rm .pybuild/pythonX.Y_2.7/build/doc
	find .pybuild -name dropin.cache -delete

override_dh_compress:
	dh_compress -X.py -X.tac