Source: pywavelets
Version: 1.4.1-3
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
pywavelets could not be built reproducibly.

This is because the package shipped different contents depending on
whether 'nocheck' is specified. The package was removing some files
only if the tests were run, so if the tests were *not* run, those
files would be shipped.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-11 10:16:36.187871827 -0800
--- b/debian/rules      2025-11-11 10:45:27.755738367 -0800
@@ -3,7 +3,7 @@
 include /usr/share/dpkg/pkg-info.mk
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
-export PYBUILD_AFTER_TEST=rm -rf 
{destdir}/usr/lib/python{version}/dist-packages/pywt/tests
+export PYBUILD_AFTER_TEST=
 export PYBUILD_BEFORE_TEST=cp -r {dir}/pywt/tests 
{destdir}/usr/lib/python{version}/dist-packages/pywt
 export PYBUILD_NAME=pywt
 export PYTHONWARNINGS=d
@@ -30,6 +30,8 @@
        PYBUILD_SYSTEM=custom \
        PYBUILD_TEST_ARGS="{interpreter} -c \"import sys ; sys.path.insert(0, 
'{destdir}/usr/lib/python{version}/dist-packages/') ; import pywt ; 
pywt.test(verbose=5)\"" dh_auto_test
 endif
+       # Remove tests regardless of whether nocheck is specifed
+       rm -rf debian/python3-pywt/usr/lib/python3*/dist-packages/pywt/tests/
 
 execute_before_dh_python3:
        dh_numpy3

Reply via email to