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
|
#!/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_python3=dh_numpy3
PYVER_DEFAULT=$(shell py3versions -d -v)
%:
dh $@ --with 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
|