File: rules

package info (click to toggle)
pystemmer 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,092 kB
  • sloc: python: 309; sh: 26; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (3)
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

export PYBUILD_NAME=stemmer
export PYSTEMMER_SYSTEM_LIBSTEMMER=1

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

override_dh_auto_build:
	# Rebuild from Cython source
	rm -f src/*.c
	dh_auto_build

override_dh_auto_test:
	dh_auto_test -- --test-args="-s tests"
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} runtests.py" \
		dh_auto_test

override_dh_strip:
	dh_strip --dbgsym-migration='python3-stemmer-dbg (<< 2.0.1+dfsg-3)'