| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export PYBUILD_NAME=jinja2 |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=pybuild |
| 9 |
|
| 10 |
override_dh_auto_build: |
| 11 |
# make sure installed version of jinja2 is not used during tests: |
| 12 |
dh_auto_build -- --disable=test |
| 13 |
pybuild --test --system=custom --test-args='PYTHONPATH="{build_dir}" {interpreter} -m pytest tests' |
| 14 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 15 |
# build documentation |
| 16 |
PYTHONPATH=$(CURDIR)/src:$(CURDIR)/docs make -C docs html |
| 17 |
endif |
| 18 |
|
| 19 |
override_dh_installdocs: |
| 20 |
# install into -doc package and keep the symlink |
| 21 |
dh_installdocs -p python-jinja2-doc --doc-main-package python-jinja2-doc |
| 22 |
dh_installdocs --remaining |
| 23 |
|
| 24 |
override_dh_installexamples: |
| 25 |
# install into -doc package and keep the symlink |
| 26 |
dh_installexamples -p python-jinja2-doc --doc-main-package python-jinja2-doc |
| 27 |
dh_installexamples --remaining |