File: rules

package info (click to toggle)
sphinxcontrib-spelling 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 140 kB
  • sloc: python: 401; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 692 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
#!/usr/bin/make -f

export PYTHONWARNINGS=d

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# python-support creates __init__.py in postinst so .pth file that
	# contains some magic to make namespace packages work even though
	# there's no __init__.py can be removed.
	find debian/python-sphinxcontrib.spelling -type f -name "*.pth" -delete
	# work-around for #645125
	sed -i 's/Metadata-Version: 1\.0/Metadata-Version: 1\.1/' debian/python-sphinxcontrib.spelling/usr/lib/python2.*/*-packages/*.egg-info/PKG-INFO

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