Source: python-pysam
Version: 0.15.3+ds-4
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because the tests left non-deterministic files lying around
that got installed to the top-level (!) Python directories. A patch
is attached that ensures they are deleted; it seems like this has
been a bit of a game of "whack-a-mole" in the past.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2020-01-06 11:21:51.493246255 +0000
--- b/debian/rules      2020-01-06 11:47:58.141308407 +0000
@@ -54,10 +54,10 @@
 clean-tests: pysam_data.clean cbcf_data.clean
        find . -name "*.pyc" -delete
        find . -name "*.pyxbldc" -delete
-       #find . -name "tmp_*" -delete # This deletes samtools/tmp_file.* which 
is needed to build successfully
+       find . -name "tmp_*.bam" -delete
        find . -name "*.bai*" -delete
        find . -name "*.cram*" -delete
-       #find . -name "*.bam" -delete # which deletes files tested
+       find . -name "pysam_uncompressed.bam" -delete
        rm -rf  tests/pysam_test_work \
                tests/example_htslib.gtf.gz.tbi \
                tests/log.txt \

Reply via email to