File: rules

package info (click to toggle)
python-qrcode 6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 304 kB
  • sloc: python: 1,671; makefile: 17; sh: 11
file content (25 lines) | stat: -rwxr-xr-x 891 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
#!/usr/bin/make -f

PYTHON3S:=$(shell py3versions -vr)

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

override_dh_auto_install:
	set -e ; for pyvers in $(PYTHON3S); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-qrcode; \
	done
	rm -f $(CURDIR)/debian/python*-oslo.utils/usr/lib/python*/dist-packages/*.pth
	mv $(CURDIR)/debian/python3-qrcode/usr/bin/qr $(CURDIR)/debian/python3-qrcode/usr/bin/python3-qr
	mv $(CURDIR)/debian/python3-qrcode/usr/share/man/man1/qr.1 $(CURDIR)/debian/python3-qrcode/usr/share/man/man1/python3-qr.1

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst

override_dh_auto_test:
	# FIXME: some tests fail with `pkg_resources.DistributionNotFound: The 'qrcode' distribution was not found and is required by the application`
	-dh_auto_test