File: rules

package info (click to toggle)
python-nanoget 1.19.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,876 kB
  • sloc: python: 643; sh: 25; makefile: 9
file content (20 lines) | stat: -rwxr-xr-x 621 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

# DH_VERBOSE := 1

export PYBUILD_NAME=nanoget

%:
	dh $@ --buildsystem=pybuild

override_dh_installexamples:
	dh_installexamples
	mv `find debian/python3-$(PYBUILD_NAME) -name test.py` debian/python3-$(PYBUILD_NAME)-examples/usr/share/doc/python3-$(PYBUILD_NAME)/examples
	find debian -name __pycache__ -type d | xargs rm -rf
	find debian -name scripts -type d | xargs rm -rf
	find debian -name LICENSE -type f -delete

#override_dh_auto_test:
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
#	PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) python3 scripts/test.py | true
#endif