Bug#1153239: python-osteosarc: please make the build reproducible [nocheck]

Chris Lamb lamby at debian.org
Fri Nov 6 16:31:33 GMT 2026


Source: python-osteosarc
Version: 0.15.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
python-osteosarc could not be built reproducibly.

This is because the testsuite creates a .pytest_cache directory that ends
up in the binary package if it is not cleaned up, meaning that if the tests
are skipped, the package will not contain these files — and the package is
therefore unreproducible. (And the package probably shouldn't contain
these files anyway.)

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-11-06 08:17:09.787846034 -0800
--- b/debian/rules	2026-11-06 08:25:14.647924479 -0800
@@ -5,6 +5,7 @@
 export PYBUILD_TEST_PYTEST=1
 export PYBUILD_DESTDIR=debian/tmp
 export PYBUILD_INSTALL_DIR=/usr/lib/python3/dist-packages
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.pytest_cache
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Reproducible-bugs mailing list