File: rules

package info (click to toggle)
python-messaging 0.5.11%2Bdebian-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 964 kB
  • ctags: 392
  • sloc: python: 3,303; makefile: 145
file content (19 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

%:
	dh --with python2 --buildsystem=python_distutils $@

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build *.egg-info _trial_temp

override_dh_install:
	rm -rf $(CURDIR)/debian/python-messaging/usr/lib/*/dist-packages/messaging/test
	dh_install

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	set -ex; for python in $(shell pyversions -r) ; do \
		$$python /usr/bin/nosetests; \
	done
endif