File: rules

package info (click to toggle)
python-distutils-extra 2.40
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 248 kB
  • ctags: 171
  • sloc: python: 2,037; makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

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

override_dh_auto_test:
ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	# run tests with all supported python 2 and 3 versions
	set -e; for python in `pyversions -s` `py3versions -s`; do \
	  echo "-- Running tests with $$python ----------------"; \
	  LC_ALL=C LANGUAGE= LANG=C PYTHONPATH=. $$python test/auto.py -v; \
	done
endif