Source: python-biom-format
Version: 2.1.16-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to