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
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk
export SETUPTOOLS_SCM_PRETEND_VERSION = $(VERSION_UPSTREAM)
export PYBUILD_NAME=bytecode
export PYBUILD_TEST_PYTEST=1
%:
dh $@ --buildsystem=pybuild
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
PYTHONPATH=$(CURDIR) $(MAKE) -C doc SPHINXBUILD=sphinx-build html
execute_after_dh_auto_clean:
$(MAKE) -C doc SPHINXBUILD=sphinx-build clean
override_dh_installdocs:
dh_installdocs -ppython-bytecode-doc --doc-main-package=python3-bytecode
dh_installdocs --remaining-packages
endif
# armhf fails strangely; see https://bugs.debian.org/1056460
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_BUILD_ARCH),armhf)
execute_before_dh_auto_test:
patch -p1 < debian/armhf.patch
execute_after_dh_auto_test:
patch -p1 -R < debian/armhf.patch
endif
endif
override_dh_compress:
dh_compress -O--buildsystem=pybuild -Xchangelog.html
|