File: rules

package info (click to toggle)
python-numpysane 0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 536 kB
  • sloc: python: 4,953; ansic: 655; makefile: 61
file content (27 lines) | stat: -rwxr-xr-x 669 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
#!/usr/bin/make -f

export PYBUILD_NAME=numpysane
export PYBUILD_DISABLE_python3.4=1
%:
	dh $@ --with python3 --buildsystem=pybuild

# extract_README.py shouldn't be distributed. This should be communicated in
# setup.py (or whatever is supposed to take its place), but I cannot be bothered
# to figure that out
override_dh_auto_install:
	dh_auto_install
	rm debian/python3-numpysane/usr/lib/python3*/dist-packages/extract_README.py
	dh_numpy3

override_dh_auto_build:
	make README README-pywrap
	dh_auto_build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make test3
endif

override_dh_auto_clean:
	rm -rf README README-pywrap
	dh_auto_clean