Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 export PYBUILD_NAME=pyfftw
8 export PYBUILD_BEFORE_BUILD=find -name "*.c" -delete
9 export PYBUILD_AFTER_INSTALL_python3=dh_numpy3
10
11 PYVER_DEFAULT=$(shell py3versions -d -v)
12
13 %:
14 dh $@ --buildsystem=pybuild
15
16 ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
17 execute_after_dh_auto_build: export http_proxy=127.0.0.1:9
18 execute_after_dh_auto_build: export https_proxy=127.0.0.1:9
19 execute_after_dh_auto_build:
20 PYTHONPATH=$(shell pybuild --pyver `py3versions --default -v` --print build_dir | awk '{print $$3}' ) \
21 make -C docs html
22 endif
23
24
25 # pyFFTW tests assume an intel arch
26 # This does not hold on all arches, so ignore test failures
27 # on arches where they are expected to fail.
28 # Known failures are:
29 # - arm64 ppc64el s390x ia64 powerpc: input_alignment != 16, simd_aligned not true
30 # - hurd-i386: limited_time >= time_limit*2
31 ARCH_LIST_IGNORE_TEST_FAILURE = arm64 mips64el ppc64el s390x hurd-i386 ia64 powerpc
32
33 empty :=
34 space := $(empty)$(empty)
35
36 # by default, do not ignore test failure
37 IGNORE_TEST_ERROR=/bin/false
38 ifneq (,$(findstring $(space)$(DEB_HOST_ARCH)$(space), $(space)$(ARCH_LIST_IGNORE_TEST_FAILURE)$(space)))
39 # do ignore test failure on selected arches
40 IGNORE_TEST_ERROR=/bin/true
41 export PYBUILD_TEST_ARGS=-k 'not (test_auto_align_input or test_aligned_flag or test_flags or test_alignment or test_get_alignment)'
42 endif
43
44 override_dh_auto_test:
45 dh_auto_test || $(IGNORE_TEST_ERROR)