#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all include /usr/share/dpkg/architecture.mk # Fails on 32-bit architectures. ifeq ($(DEB_HOST_ARCH_BITS),32) export PYTEST_ADDOPTS=-k 'not test_from_numpy' endif # libvips progress callbacks are not reliable on Hurd. ifeq ($(DEB_HOST_ARCH_OS),hurd) export PYTEST_ADDOPTS=-k 'not test_progress' endif %: dh $@ --buildsystem=pybuild execute_after_dh_auto_build: ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) sphinx-build -b html doc/ doc/build/doc-html endif execute_after_dh_auto_install: find debian/tmp -name pyvips_build.py -delete