File: rules

package info (click to toggle)
pairtools 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,508 kB
  • sloc: python: 8,128; sh: 123; makefile: 66; ansic: 31
file content (20 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

export PYBUILD_DESTDIR_python3=debian/python3-pairtools/

%:
	dh $@ --with python3,numpy3 --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -f pairtools/lib/*.c pairtools/lib/regions.cpp

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="export CURPY={interpreter}; \
	cd {build_dir} && {interpreter} -m pytest -v"

execute_after_dh_auto_install:
	find debian/ -name '*.stats' -delete