File: rules

package info (click to toggle)
python-fastimport 0.9.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 320 kB
  • sloc: python: 3,500; makefile: 19; sh: 4
file content (26 lines) | stat: -rwxr-xr-x 877 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
#!/usr/bin/make -f

%:
	dh $* --with python3,pypy --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build --buildsystem=pybuild
	pypy setup.py build --debug

override_dh_auto_install:
	dh_auto_install
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
	done;
	pypy setup.py install --root debian/tmp --install-layout deb
	rm -rf debian/tmp/usr/lib/pypy/bin
	# Install the python23files to python3-fastimport
	dh_install "debian/tmp/usr/lib/python3*/*-packages" -p python3-fastimport
	# Install the pypy files to pypy-fastimport
	dh_install "debian/tmp/usr/lib/pypy/" -p pypy-fastimport

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	PYTHONPATH=. python3 -m unittest fastimport.tests.test_suite
	PYTHONPATH=. pypy -m unittest fastimport.tests.test_suite
endif