#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk ARCHITECTURE := $(shell dpkg-architecture -qDEB_HOST_ARCH) export PYBUILD_DESTDIR_python2=debian/python-zmq/ export PYBUILD_DESTDIR_python2-dbg=debian/python-zmq-dbg/ export PYBUILD_DEBUG=1 export DH_VERBOSE=1 %: dh $@ --with python2 --buildsystem=pybuild override_dh_install: dh_install # remove a couple of header files already in python3-zmq find debian/python-zmq-dbg/usr/lib/ ! -type d ! -name '*.so' -delete find debian/python*-zmq/ -name compiler.json -delete find debian/python*-zmq/ -name config.json -delete # cython core is only used for cpython find debian/python-zmq -depth -type d -empty -exec rmdir {} \; find debian/python-zmq-dbg -type d -depth -empty -exec rmdir {} \; override_dh_auto_test: echo "skipping test" # hard to debug race condition in monitor sockets #ifneq (,$(filter $(ARCHITECTURE), mipsel mips)) # -dh_auto_test #else # dh_auto_test #endif