File: rules

package info (click to toggle)
python-pex 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 2,840 kB
  • sloc: python: 9,757; sh: 1,394; makefile: 165
file content (32 lines) | stat: -rwxr-xr-x 748 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
26
27
28
29
30
31
32
#!/usr/bin/make -f

export PYBUILD_NAME=pex
export DH_VERBOSE=1

export pkgversion=$(shell dpkg-parsechangelog --show-field version)


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

override_dh_auto_install:
	dh_auto_install
	# Use the Python 3 version of /usr/bin/pex
	mkdir -p debian/pex/usr/bin
	cp debian/python3-pex/usr/bin/pex debian/pex/usr/bin
	rm -rf debian/python3-pex/usr/bin

override_dh_installdocs:
	PYTHONPATH=. python3 -m sphinx -N -bhtml docs build
	dh_installdocs

override_dh_installman:
	PYTHONPATH=$(CURDIR) help2man -n pex -s 1 -o debian/pex.1 \
		--version-string=$(pkgversion) \
		--no-discard-stderr --no-info \
		debian/pex/usr/bin/pex
	dh_installman

override_dh_auto_clean:
	rm -f debian/pex.1
	dh_auto_clean