Bug#1120331: python-lupa: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Nov 7 18:57:33 GMT 2025


Source: python-lupa
Version: 2.4+dfsg-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-lupa could not be built reproducibly.

This is because the testsuite did not 100% clean up after itself.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-07 10:46:25.327871778 -0800
--- b/debian/rules	2025-11-07 10:56:37.503833189 -0800
@@ -11,6 +11,7 @@
 export PYBUILD_BEFORE_BUILD=rm -f lupa/_lupa.c
 export PYBUILD_BEFORE_TEST=mkdir {build_dir}/lupa ; cp -r {dir}/lupa/tests {build_dir}/lupa
 export PYBUILD_TEST_ARGS=lupa/tests/test.py -k 'not test_attrgetter_refcycle and not test_no_overflow and not test_pyfunc_refcycle and not test_runtime_cleanup'
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/lupa/tests
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Reproducible-bugs mailing list