Source: zyne Version: 0.1.2-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that zyne could not be built reproducibly. The attached patch removes .pyc from the binary packages by switching to using pybuild instead of manual calls to setup.py. This is not only more= flexible, it's less code to maintain and means zyne can be built reproducibly in our reproducible toolchain. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2015-08-27 04:14:48.910151059 +0100 --- b/debian/rules 2015-08-27 04:20:18.185393793 +0100 @@ -1,22 +1,12 @@ #!/usr/bin/make -f -export PYTHONWARNINGS=d -buildvers := $(shell pyversions -rv) - %: - dh $@ --with python2 + dh $@ --buildsystem=pybuild override_dh_auto_install: - set -e; \ - for i in $(buildvers); do \ - python$$i ./setup.py install --skip-build --skip-build --root $(CURDIR)/debian/zyne --install-layout=deb; \ - done + dh_auto_install mv $(CURDIR)/debian/zyne/usr/bin/Zyne.py $(CURDIR)/debian/zyne/usr/bin/zyne -override_dh_auto_clean: - find . -name '*.pyc' -delete - rm -rf build - # not to run override_dh_compress: dh_compress --exclude=.sg --exclude=.aif --exclude=.aiff