File: rules

package info (click to toggle)
pyrle 0.0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,720 kB
  • sloc: python: 1,141; makefile: 12; sh: 7
file content (19 lines) | stat: -rwxr-xr-x 735 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# Some of the r-* test dependencies are only available on 64 bit architectures
include /usr/share/dpkg/architecture.mk
ifeq "$(DEB_HOST_ARCH_BITS)" "64"
	export PYBUILD_BEFORE_TEST=cp -va {dir}/tests/*.R {build_dir}/tests/
	export PYBUILD_AFTER_TEST=rm -vf {build_dir}/tests/*.R && rm -rf {build_dir}/.hypothesis
	export PYBUILD_TEST_ARGS=-n auto
else
	# Skip tests marked "r" by upstream on 32 bit archs, and two tests affected by upstream issue #7
	export PYBUILD_TEST_ARGS=-n auto -m "not r" -k "not test_commutative_rles[__add__] and not test_commutative_rles[__mul__]"
endif

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