File: rules

package info (click to toggle)
python-fann2 1%3A1.2.0%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 500 kB
  • sloc: cpp: 1,615; ansic: 862; python: 116; makefile: 22; sh: 13
file content (39 lines) | stat: -rwxr-xr-x 700 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f
# -*- makefile -*-
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

export PYBUILD_NAME=fann2


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


override_dh_auto_test:
	mkdir -p test
	
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="\
		AUTOPKGTEST_TMP={dir}/test \
		PYTHONPATH={build_dir} \
		PYINTERPRETER={interpreter} \
		/bin/sh $(CURDIR)/debian/tests/python{version.major}-basic" \
	dh_auto_test


override_dh_auto_install:
	dh_auto_install


override_dh_auto_clean:
	dh_auto_clean
	
	rm -rf fann2.egg-info
	rm -rf build
	rm -rf test
	rm -f fann2/fann2_wrap.cxx fann2/fann2_wrap.cpp
	rm -f fann2/libfann.py