File: rules

package info (click to toggle)
python-scitrack 2024.10.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: python: 462; sh: 12; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 467 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_NAME=scitrack

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v"
endif

# Done in order to make build reproducible
override_dh_auto_install:
	dh_auto_install
	find -name direct_url.json -delete

execute_after_dh_python3:
	find -name RECORD -delete