Bug#892019: python-meshio: Installs test files to /usr/lib/python3/dist-packages

Chris Lamb lamby at debian.org
Sun Mar 4 08:45:17 UTC 2018


Source: python-meshio
Version: 1.11.7-1
Severity: serious
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that python-meshio installs test files to /usr/lib/python3/dist-packages,
for example:

  /usr/lib/python3/dist-packages/test.med

Patch attached. These were found as the files vary between runs.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2018-03-04 08:29:37.637307710 +0000
--- b/debian/rules	2018-03-04 08:43:11.509093514 +0000
@@ -6,6 +6,9 @@
 export PYBUILD_NAME=meshio
 export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
 
+# Don't install files generated by the testsuite.
+export PYBUILD_AFTER_TEST := find {build_dir} -type f -maxdepth 1 -delete
+
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 


More information about the debian-science-maintainers mailing list