Bug#1135104: python-msgspec: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Apr 27 17:37:50 BST 2026


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

This is because if the tests are run, the binary .deb ends up with a
benchmarks/ directory. Therefore, if the tests are skipped, the contents
of the package will differ.

A patch is attached that removes this directory after running the
tests.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-04-27 09:30:20.074259722 -0700
--- b/debian/rules	2026-04-27 09:31:57.517735872 -0700
@@ -16,7 +16,7 @@
 export PYBUILD_NAME=msgspec
 export PYBUILD_BEFORE_TEST=cp {dir}/src/msgspec/_core.c {build_dir}/msgspec; \
  cp {dir}/benchmarks -a {dir}/tests {build_dir}
-export PYBUILD_AFTER_TEST=rm -rf {build_dir}/msgspec/_core.c
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/msgspec/_core.c {build_dir}/benchmarks
 export PYBUILD_TEST_ARGS=\
  --ignore=tests/prof/perf/test_basic.py \
  --ignore=tests/test_cpylint.py \


More information about the Reproducible-bugs mailing list