Bug#1120068: python-biom-format: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Nov 4 19:01:57 GMT 2025


Source: python-biom-format
Version: 2.1.16-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
python-biom-format could not be built reproducibly.

This is because it generates different content whether the tests are
run, and, relatedly, it installs an "examples/" directory directly
under dist-packages.

I believe it is this line that is the 'cause':

   export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir}

... and a patch is attached that cleans up with:

   export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-04 10:53:00.349787676 -0800
--- b/debian/rules	2025-11-04 10:59:24.498766256 -0800
@@ -10,6 +10,7 @@
 export examplepkg=python-$(PYBUILD_NAME)-examples
 export PYBUILD_AFTER_INSTALL_python3=dh_numpy3
 export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples
 
 ## When trying better hardening the build fails
 # export DEB_BUILD_MAINT_OPTIONS = hardening=+all


More information about the Reproducible-bugs mailing list