File: rules

package info (click to toggle)
python-messaging 0.5.12%2Bdebian-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 968 kB
  • ctags: 403
  • sloc: python: 3,886; makefile: 154
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