File: rules

package info (click to toggle)
python-django-debug-toolbar 1%3A1.2.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 1,628 kB
  • sloc: python: 2,789; makefile: 180; sh: 1
file content (21 lines) | stat: -rwxr-xr-x 566 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

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

override_dh_python2:
	dh_python2
	
	# Don't embed jQuery
	for FILE in `find debian/*/usr -name jquery.js`; do\
		ln -sf /usr/share/javascript/jquery/jquery.js $$FILE ; \
	done
	# Don't embed jQuery.cookie
	for FILE in `find debian/*/usr -name jquery.cookie.js`; do\
		ln -sf /usr/share/javascript/jquery-cookie/jquery.cookie.js $$FILE ; \
	done

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings django-admin test tests
endif