File: rules

package info (click to toggle)
wheel 0.29.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 484 kB
  • ctags: 389
  • sloc: python: 2,756; makefile: 149; sh: 39
file content (41 lines) | stat: -rwxr-xr-x 835 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
39
40
41
#!/usr/bin/make -f

export PYBUILD_NAME=wheel
export PYBUILD_VERBOSE=1
export DH_VERBOSE=1


LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")

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


override_dh_install:
	rm -rf debian/python-wheel/usr/bin
	dh_install


override_dh_installman:
	(cd debian/manpages; \
	 sphinx-build \
		-D today="$(BUILD_DATE)" \
		-b man \
		-d _build/doctrees . _build/man)
	dh_installman


override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3
	mkdir -p debian/python-wheel-common/usr
	mv debian/python3-wheel/usr/bin debian/python-wheel-common/usr


# The tests require that the package be installed, so defer them to DEP-8.
override_dh_auto_test:


override_dh_auto_clean:
	dh_auto_clean
	rm -rf debian/manpages/_build