File: rules.tpl

package info (click to toggle)
pypi2deb 4.20240727
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: python: 1,088; sh: 36; makefile: 25
file content (17 lines) | stat: -rwxr-xr-x 575 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/make -f

export PYBUILD_NAME={{src_name.replace('python-', '')}}
{%- for key, value in exports.items() | sort %}
export {{key}}={{value}}{% endfor %}
%:
	dh $@ --with {{with}} --buildsystem=pybuild
{%- if docs and docs.sphinx_dir %}

execute_after_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	cd {{docs.sphinx_dir}} && \
	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
endif
{% endif %}