File: rules

package info (click to toggle)
python-freecontact 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 268 kB
  • ctags: 41
  • sloc: cpp: 291; python: 62; makefile: 14
file content (28 lines) | stat: -rwxr-xr-x 821 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export PYBUILD_NAME = freecontact

Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description)

%:
	dh $@ --with python2 --buildsystem=pybuild
### once libboost-python-dev will be provided for Python3
#	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_gencontrol:
	dh_gencontrol -- '-VDescription=$(Description)'

get-orig-source:
	uscan --verbose --force-download --destdir=..

PYVER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python)
PYVERBDIR = $(wildcard ./build/lib.*-2.7)

#override_dh_auto_test:
#	PYTHONPATH=$(PYVERBDIR) ./test/test01.py
override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/test/test01.py" \
	    dh_auto_test