File: rules

package info (click to toggle)
paste 3.5.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,424 kB
  • sloc: python: 18,933; javascript: 8,028; sh: 24; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 739 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

export PYBUILD_NAME = paste
export PYBUILD_AFTER_INSTALL=\
rm {destdir}{install_dir}/*.pth ;\
rm {destdir}{install_dir}/*/namespace_packages.txt ;\
touch {destdir}{install_dir}/paste/__init__.py
export PYBUILD_BEFORE_TEST=cp -r Paste.egg-info {build_dir}
export PYBUILD_AFTER_TEST=rm -r {build_dir}/Paste.egg-info

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

ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
override_dh_sphinxdoc:
	PYTHONPATH=. python3 -m sphinx -bhtml docs/ $(CURDIR)/debian/python-paste-doc/usr/share/doc/python-paste-doc/html

	dh_sphinxdoc -O--buildsystem=pybuild
endif

override_dh_installchangelogs:
	dh_installchangelogs -i docs/news.txt