Skip to content
Commits on Source (2)
......@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 11~),
bowtie2,
freebayes,
ncbi-blast+,
pilon,
pilon | pilon-non-free,
racon,
samtools,
spades,
......
......@@ -17,11 +17,14 @@ override_dh_auto_clean:
find . -name "*.o" -delete
find . -name "*.so" -delete
find . -name __pycache__ -type d | xargs rm -rf
rm -rf .pybuild unicycler.egg-info
override_dh_auto_build:
dh_auto_build
# building the dynamic library requires extra make call
make
# for some reason it also needs to be manually moved
cp -a unicycler/cpp_functions.so `dirname $$(find .pybuild -name cpp_wrappers.py)`
override_dh_auto_test:
BUILDPATH=$(shell pybuild --print build_dir --interpreter python3) ; \
......@@ -29,3 +32,8 @@ override_dh_auto_test:
ln -s $(CURDIR)/unicycler-runner.py $${BUILDPATH} ; \
cp -a unicycler/*.so $${BUILDPATH}/$(PYBUILD_NAME) ; \
PYTHONPATH=$${BUILDPATH}/$(PYBUILD_NAME) dh_auto_test || true
override_dh_link:
dh_link
# symlink versioned shared lib to make it found
ln -s `basename $$(find debian -name "cpp_functions*.so")` `dirname $$(find debian -name "cpp_functions*.so")`/cpp_functions.so