File: rules

package info (click to toggle)
uncertainties 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 396 kB
  • sloc: python: 3,156; makefile: 21
file content (26 lines) | stat: -rwxr-xr-x 578 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 python2

override_dh_installchangelogs:
	grep -A 1000 'Version history' PKG-INFO \
	| tail -n +4 \
	| sed -e 's/^ *//g;s/  */ /g;s/$$/\n/g' \
	| fmt > changelog
	dh_installchangelogs

override_dh_auto_install:
	dh_auto_install
	find debian/python-uncertainties/ -name 'test_*.py' -delete

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	set -e; \
	ln -s uncertainties-py25 uncertainties; \
	cd uncertainties; \
	for python in $(shell pyversions -r); do \
		$$python /usr/bin/nosetests -e test_umath; \
	done
endif