File: rules

package info (click to toggle)
python-nixio 1.5.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,888 kB
  • sloc: python: 12,527; cpp: 832; makefile: 25
file content (32 lines) | stat: -rwxr-xr-x 1,027 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
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export PYBUILD_BEFORE_TEST = cp -a {dir}/nixio {dir}/docs {build_dir}
# FIXME: test_nix_compatibility.py needs NIX C++ headers to be runnable.
# NOTE: the documentation's examples skips expect non free Lenna picture.
export PYBUILD_TEST_ARGS = -v \
	-k 'not test_nix_compatibility.py \
	and not test_image_data \
	and not test_image_with_metadata \
	and not test_multiple_rois \
	and not test_single_roi'
export PYBUILD_AFTER_TEST = rm -rf {build_dir}/docs

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	python3 -m sphinx docs/source/ docs/_build/
endif

DTMP = $(CURDIR)/debian/tmp
execute_before_dh_installman: export PYTHONPATH=$(CURDIR)
execute_before_dh_installman:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	help2man $(DTMP)/usr/bin/nixio \
	        --name "command line interface for nixio tools" \
	        --version-string="$(DEB_VERSION_UPSTREAM)" \
	        --no-info \
	> debian/nixio.1
endif