File: rules

package info (click to toggle)
python-cdo 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 228 kB
  • sloc: python: 1,216; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 561 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
#!/usr/bin/make -f

export DH_VERBOSE=1

PY3VERS:=$(shell py3versions -r)

# The magic debhelper  rule
%:
	dh  $@ --with python3

override_dh_auto_clean:
	rm -f test.nc ofile.nc
	rm -fr *.egg-info build
	python3 setup.py clean -a

override_dh_auto_test:
	for pyvers in $(PY3VERS) ; do \
		($$pyvers ./test/test_cdo.py || echo "Ignoring test failures" ) ; done


override_dh_auto_build: 
	python3 setup.py build

override_dh_auto_install: 
	for p in $(PY3VERS) ; do \
		$$p setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb ; \
		done
	dh_numpy3