File: rules

package info (click to toggle)
python-gearman 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 464 kB
  • ctags: 471
  • sloc: python: 2,285; makefile: 135
file content (40 lines) | stat: -rwxr-xr-x 772 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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

PYVERS :=  $(shell pyversions -r)

%:
	dh --with python2 $@

override_dh_auto_build:
	set -e; \
	for py in $(PYVERS); do \
		$$py setup.py build; \
	done
	$(MAKE) -C docs html

override_dh_auto_install:
	set -e; \
	for py in $(PYVERS); do \
		$$py setup.py install --skip-build --root debian/python-gearman --install-layout=deb; \
	done

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for py in $(PYVERS); do \
		PYTHONPATH="." $$py /usr/bin/unit2 discover -s tests -p '*.py'; \
	done
endif

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C docs clean

override_dh_installdocs:
	dh_installdocs -Xjquery.js

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.txt

override_dh_compress:
	dh_compress -Xhtml