File: rules

package info (click to toggle)
python-acora 2.2-1.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,664 kB
  • sloc: python: 996; makefile: 43; sh: 13; ansic: 12
file content (14 lines) | stat: -rwxr-xr-x 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export PYBUILD_NAME        := acora
export PYBUILD_BEFORE_BUILD := rm -f $(wildcard acora/*.c)
export PYBUILD_BEFORE_TEST := cp -a test.py README.rst {build_dir}/
export PYBUILD_TEST_ARGS   := {interpreter} {build_dir}/test.py
export PYBUILD_AFTER_TEST  := rm -f {build_dir}/test.py {build_dir}/README.rst

override_dh_auto_test: export PYBUILD_SYSTEM=custom
override_dh_auto_test:
	dh_auto_test

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