File: rules

package info (click to toggle)
python-pipx 0.12.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 468 kB
  • sloc: python: 1,199; makefile: 18; sh: 6
file content (30 lines) | stat: -rwxr-xr-x 812 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

manpage = debian/pipx.1
executable = debian/pipx/usr/bin/pipx

override_dh_auto_test:
	python3 test.py --only-static

# TODO...
# generate manpage based on --help option of script itself
#override_dh_auto_install:
#	dh_auto_install
#	export PYTHONPATH=debian/pipx/usr/lib/python3*/dist-packages/; \
#	  help2man \
#		--name="execute binaries from Python packages in isolated environments" \
#		--no-info --version-option=$(DEB_VERSION_UPSTREAM) \
#		--output=$(manpage) \
#		$(executable) \
#		|| { $(executable) --help; false; }
#	find "$(cdbs_python_destdir)/usr/lib" -name '*.pyc' -delete
#	find "$(cdbs_python_destdir)/usr/lib" -type d -empty -delete
#
#override_dh_clean:
#	dh_clean
#	rm -f $(manpage)

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