File: rules

package info (click to toggle)
python-argcomplete 3.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 696 kB
  • sloc: python: 2,803; makefile: 49; sh: 7
file content (37 lines) | stat: -rwxr-xr-x 1,104 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=argcomplete

export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS=PATH={home_dir}/scripts:$$PATH \
	PYTHONPATH={build_dir} \
	{interpreter} {dir}/test/test.py -v

# Avoid failures in unit tests
# See https://github.com/kislyuk/argcomplete/issues/199
unexport LC_ALL

%:
	dh $@ --buildsystem=pybuild

include /usr/share/dpkg/pkg-info.mk
generate_manpages:
	set -e ; \
	for file in \
		activate-global-python-argcomplete \
		python-argcomplete-check-easy-install-script \
		register-python-argcomplete; \
	do \
		cp -f scripts/$$file debian/pregenerated_manpages/$$file ; \
		chmod a+x debian/pregenerated_manpages/$$file ; \
		PYTHONPATH=. help2man --version-string="$(DEB_VERSION)" \
			--no-info --include=debian/help2man.include \
			--name "$$file - argcomplete utility script" \
			-o debian/pregenerated_manpages/$$file.1 --no-discard-stderr \
			debian/pregenerated_manpages/$$file ; \
		rm -f debian/pregenerated_manpages/$$file; \
	done ; \
	rm -rf argcomplete/__pycache__