File: rules

package info (click to toggle)
django-openid-auth 0.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 364 kB
  • ctags: 324
  • sloc: python: 2,221; makefile: 21
file content (21 lines) | stat: -rwxr-xr-x 584 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
#!/usr/bin/make -f

%:
	# Because of the makefile included in upstream we need to set the 
	# buildsystem explicitly.
	dh --buildsystem=python_distutils $@ --with python2

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	find -name "*.pyc" -o -name "*~" -delete
	dh_auto_configure

.PHONY: override_dh_auto_test
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for python in $(shell pyversions -r); do \
	  PYTHONPATH="." $$python example_consumer/manage.py test --settings=example_consumer.settings django_openid_auth ; \
	done
endif