Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 # setup.py marks the C speedups extension optional unless BUILD_EXTENSION is
6 # set, i.e. a compilation failure would silently produce a pure-Python package.
7 export BUILD_EXTENSION = yes
8
9 # extend timeout on slow buildds to fix FTBFS
10 # see https://github.com/python-websockets/websockets/issues/163
11 # Upstream now defaults to the same factor for released versions; keep this
12 # explicit so the mitigation does not depend on version.released being true.
13 export WEBSOCKETS_TESTS_TIMEOUT_FACTOR = 100
14
15 # websockets reads its proxy configuration from the environment, see
16 # https://websockets.readthedocs.io/en/stable/topics/proxies.html, and the test
17 # suite assumes that none is configured. These have to be set *empty* rather
18 # than unset: pybuild replaces an absent http_proxy/https_proxy with a black
19 # hole at 127.0.0.1:9, and only drops them when they are present but empty.
20 # They are exported rather than set on a dh_auto_test override so that they
21 # also reach pybuild-autopkgtest, which includes this file but runs no override.
22 export http_proxy =
23 export https_proxy =
24 export ws_proxy =
25 export wss_proxy =
26 export socks_proxy =
27
28 export PYBUILD_NAME = websockets
29
30 %:
31 dh $@ --buildsystem=pybuild