File: rules

package info (click to toggle)
pyfftw 0.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 924 kB
  • sloc: python: 7,884; ansic: 681; makefile: 130; sh: 32
file content (46 lines) | stat: -rwxr-xr-x 1,538 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=pyfftw
export PYBUILD_BEFORE_BUILD=find -name "*.c" -delete
export PYBUILD_AFTER_INSTALL_python2=dh_numpy
export PYBUILD_AFTER_INSTALL_python3=dh_numpy3

PYVER_DEFAULT=$(shell py3versions -d -v)

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

# pyFFTW tests assume an intel arch
# This does not hold on all arches, so ignore test failures
# on arches where they are expected to fail.
# Known failures are:
#  - arm64 ppc64el s390x ia64 powerpc: input_alignment != 16, simd_aligned not true
#  - hurd-i386: limited_time >= time_limit*2
ARCH_LIST_IGNORE_TEST_FAILURE = arm64 mips64el ppc64el s390x hurd-i386 ia64 powerpc

empty :=
space := $(empty)$(empty)

# by default, do not ignore test failure
IGNORE_TEST_ERROR=/bin/false
ifneq (,$(findstring $(space)$(DEB_HOST_ARCH)$(space), $(space)$(ARCH_LIST_IGNORE_TEST_FAILURE)$(space)))
	# do ignore test failure on selected arches
	IGNORE_TEST_ERROR=/bin/true
endif

override_dh_auto_test:
	dh_auto_test || $(IGNORE_TEST_ERROR)

override_dh_installdocs:
	cd docs; \
	PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(PYVER_DEFAULT)_pyfftw/build:${PYTHONPATH} make html
	for JSCRIPT in jquery underscore; do \
	  JSDOC=$(CURDIR)/docs/_build/html/_static/$${JSCRIPT}.js; \
	  rm $${JSDOC}; ln -s /usr/share/javascript/$${JSCRIPT}/$${JSCRIPT}.js $${JSDOC}; \
	done
	dh_installdocs -ppython-pyfftw-doc --doc-main-package=python-pyfftw-doc docs/_build/html/
	dh_installdocs