File: rules

package info (click to toggle)
python-qcli 0.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 100 kB
  • sloc: python: 646; makefile: 19
file content (30 lines) | stat: -rwxr-xr-x 797 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
#!/usr/bin/make -f

DH_VERBOSE := 1

include /usr/share/dpkg/default.mk

bindir   := $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
examples := $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples

pybuilddir := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)

export PYBUILD_NAME=qcli


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

# we only need this package as qiime dependency - there is no point in bloating /usr/bin with these scripts
override_dh_installexamples:
	mv $(bindir) $(examples)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e -x;\
	for pyv in `pyversions -dv` ; do \
	    cd build/; \
	    ln -s ../python-code/tests; \
	    env PYTHONPATH=lib.$(pybuilddir)-$${pyv} nosetests ; \
	done
endif