File: rules

package info (click to toggle)
virtualenvwrapper 4.8.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 796 kB
  • sloc: sh: 3,369; python: 595; makefile: 185
file content (38 lines) | stat: -rwxr-xr-x 932 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
32
33
34
35
36
37
38
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export PBR_VERSION=$(DEB_VERSION_UPSTREAM)
export SKIP_PIP_INSTALL=1

VERBOSE=1
export PYBUILD_NAME=virtualenvwrapper

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build *.egg-info

override_dh_auto_build:
	dh_auto_build
	python3 -m sphinx -b html -a -c docs/source -D language=en docs/source \
		build/html
	python3 -m sphinx -b man -a -c docs/source -D language=en docs/source \
		build/man

override_dh_auto_install:
	dh_auto_install
	# Remove bin files from Python packages
	rm -rv $(CURDIR)/debian/python3-virtualenvwrapper/usr/bin
	dh_bash-completion

override_dh_compress:
	dh_compress -i -X.rst -X.js -X.html -X.txt

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_sphinxdoc:
	dh_sphinxdoc -X searchtools.js -X translations.js
	dh_sphinxdoc /usr/share/doc/virtualenvwrapper/html/

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