Source: python-mcstasscript
Version: 0.0.46+git20250402111921.bfa5a26-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

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

This is because the binary .deb ships a file generated by the tests,
specifically 
/usr/lib/python3/dist-packages/mcstasscript/tests/test_instrument.instr.

Patch attached that removes this file after the test run.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-09-07 11:27:12.745889203 -0700
--- b/debian/rules      2025-09-07 11:39:04.534799459 -0700
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 export PYBUILD_TEST_ARGS=-k "not test_simple_instrument and not test_slit and 
not test_complex_instrument"
+export PYBUILD_AFTER_TEST=find {build_dir} -type f -name '*.instr' -delete
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to