File: rules

package info (click to toggle)
python-aiohttp 3.5.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,648 kB
  • sloc: python: 36,948; ansic: 15,734; makefile: 365; sh: 83
file content (27 lines) | stat: -rwxr-xr-x 796 bytes parent folder | download
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
#!/usr/bin/make -f

export PYBUILD_NAME = aiohttp
# enable pytest also here to make backports easier
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/tests
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

override_dh_auto_clean:
	rm -rf .cache
	dh_auto_clean

override_dh_strip:
	dh_strip --no-automatic-dbgsym

override_dh_install:
	dh_install
	$(RM) debian/python3-aiohttp-dbg/usr/lib/python3*/dist-packages/aiohttp/_find_header.h
	$(RM) debian/python3-aiohttp/usr/lib/python3*/dist-packages/aiohttp/_find_header.h

override_dh_auto_test:
	# disable tests for now:
	# https://bugs.python.org/issue28634 needs to be fixed in Debian
	# and tests patched to not access internet during build (see https://bugs.debian.org/830567)