#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 export PYBUILD_NAME=pyranges export PYBUILD_BEFORE_TEST=cp -av {dir}/tests/*.bed {build_dir}/tests && \ cp -av {dir}/tests/test_data {build_dir}/tests && \ cp -av {dir}/tests/data {build_dir}/tests && \ cp -av {dir}/pyranges/example_data {build_dir}/pyranges export PYBUILD_TEST_ARGS=-n $(shell nproc) %: dh $@ --with python3 --buildsystem=pybuild override_dh_auto_build: dh_auto_build echo 'Generating corresponding files ...' cat debian/missing-sources/test_sorted.sam| samtools view -Sb - > tests/test_data/test_sorted.bam cat debian/missing-sources/control.sam| samtools view -Sb - > pyranges/example_data/control.bam samtools index tests/test_data/test_sorted.bam tests/test_data/test_sorted.bam.bai samtools index pyranges/example_data/control.bam pyranges/example_data/control.bam.bai override_dh_install: dh_install find debian/ -name *.bam* | xargs rm -rf find debian/ -name 'hi' | xargs rm -rf find debian/ -name '.hypothesis' | xargs rm -rf