File: rules

package info (click to toggle)
python-concurrent.futures 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 284 kB
  • ctags: 352
  • sloc: python: 1,409; makefile: 89
file content (27 lines) | stat: -rwxr-xr-x 778 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
24
25
26
27
#!/usr/bin/make -f

PYTHONS:=$(shell pyversions -vr)

%:
	dh $@ --buildsystem=python_distutils --with python2,sphinxdoc

override_dh_install:
	set -e && for pyvers in $(PYTHONS); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python-concurrent.futures; \
	done

override_dh_sphinxdoc:
	sphinx-build -b html docs $(CURDIR)/debian/python-concurrent.futures/usr/share/doc/python-concurrent.futures/html
	dh_sphinxdoc -O--buildsystem=python_distutils

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e ; set -x ; \
	for pyvers in $(PYTHONS) ; do \
		PYTHONPATH=. python$$pyvers test_futures.py ; \
	done
endif

override_dh_installexamples:
	dh_installexamples -O--buildsystem=python_distutils crawl.py primes.py