File: rules

package info (click to toggle)
python-bx 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,160 kB
  • sloc: python: 21,252; ansic: 2,326; makefile: 78; sh: 8
file content (26 lines) | stat: -rwxr-xr-x 605 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
#!/usr/bin/make -f

#DH_VERBOSE = 1
#include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8

export NOSE_VERBOSE=2
export PYBUILD_NAME=bx-python
export PYBUILD_BEFORE_TEST=cp -r {dir}/test_data {build_dir}/

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

override_dh_auto_clean:
	dh_auto_clean
# C files are generated by Cython
	find -name "*.pyx" | sed 's/pyx$$/c/' | xargs $(RM)
	grep -rli "Generated by Cython" lib/ | xargs -r rm
# Changes perpetually redone
	rm -rf lib/bx_python.egg-info

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3