Bug#1142496: spopt: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 20 19:01:39 BST 2026


Source: spopt
Version: 0.7.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
spopt could not be built reproducibly.

This is because the testsuite does not completely clean up after itself,
leading to files that only exist if the testsuite is run.

Assuming that these files are not useful at runtime, the attached patch
removes these files after the test run.


 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-07-20 08:53:55.417477558 -0700
--- b/debian/rules	2026-07-20 10:47:40.784477979 -0700
@@ -8,6 +8,7 @@
 export PYBUILD_NAME=spopt
 export PYBUILD_TEST_ARGS=-s -v --ignore=spopt/tests/test_region/test_sa3.py
 export PYBUILD_BEFORE_TEST=cp -r {dir}/spopt/tests/test_locate/data {build_dir}/spopt/tests/test_locate
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/spopt/tests/test_locate/data
 
 %:
 	dh $@ --with sphinxdoc  --buildsystem=pybuild


More information about the debian-science-maintainers mailing list