File: rules

package info (click to toggle)
python-cdo 1.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 192 kB
  • ctags: 202
  • sloc: python: 893; makefile: 20
file content (33 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DH_VERBOSE=1

PYVERS:=$(shell pyversions -r)
PY3VERS:=$(shell py3versions -r)

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

override_dh_auto_clean:
	rm -f test.nc ofile.nc
	rm -fr *.egg-info build
	dh_auto_clean

#override_dh_auto_test:
#	for pyvers in $(shell pyversions -r) ; do \
#		$$pyvers ./test/test_cdo.py ; done

build-python%:
	python$* setup.py build

override_dh_auto_build: $(PYTHON3:%=build-python%)
	dh_auto_build

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