File: rules

package info (click to toggle)
python-hdf5plugin 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 101,196 kB
  • sloc: ansic: 159,199; cpp: 24,051; python: 2,700; sh: 2,063; makefile: 1,308; asm: 390; lisp: 82
file content (22 lines) | stat: -rwxr-xr-x 556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

DOPACKAGES := $(shell dh_listpackages)

export HDF5PLUGIN_STRIP=all

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	dh_auto_test -- -s custom --test-args="env PYTHONPATH={build_dir} {interpreter} -m hdf5plugin.test"
	dh_auto_test -- -s custom --test-args="env PYTHONPATH={build_dir} {interpreter} test/test.py"
endif

# Build documentation
ifneq (,$(filter python3-hdf5plugin-doc,$(DOPACKAGES)))

execute_after_dh_auto_build:
	PYTHONPATH=`pwd`/build/lib make -C doc html

endif