File: rules

package info (click to toggle)
uvloop 0.14.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,824 kB
  • sloc: python: 6,955; ansic: 116; makefile: 46
file content (22 lines) | stat: -rwxr-xr-x 711 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
#! /usr/bin/make -f

export PYBUILD_NAME=uvloop
export PYBUILD_BUILD_ARGS=build_ext --use-system-libuv
export PYBUILD_INSTALL_ARGS=build_ext --use-system-libuv
export PYBUILD_TEST_ARGS=-s tests --ignore=tests/test_pipes.py --ignore=tests/test_sourcecode.py --ignore=tests/test_sockets.py --ignore=tests/test_tcp.py
export PYBUILD_DISABLE=test/python3-dbg

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export TRAVIS_OS_NAME=dummy

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

override_dh_auto_install:
	dh_auto_install
	# remove source files from binary packages
	find debian/ -type f \( -name '*.[ch]' -or -name '*.px[di]' -or -name '*.pyx' \) -delete

override_dh_strip:
	dh_strip --no-automatic-dbgsym