File: rules

package info (click to toggle)
aionotify 0.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: python: 452; makefile: 21
file content (22 lines) | stat: -rwxr-xr-x 507 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
#!/usr/bin/make -f

export PYBUILD_NAME=aionotify

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .eggs

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	# TODO requires missing python3-asynctest package
	#dh_auto_test
endif

override_dh_installexamples:
	dh_installexamples
	find debian/python3-aionotify/usr/share/doc/python3-aionotify/examples/ \
	  -name '*.py' \
	  -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' {} \;