1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=toil
export PYBUILD_DESTDIR_python3=debian/toil/
export PYBUILD_DISABLE=test
export PYBUILD_DISABLE_python2=1
#CURDIR ?= $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/..)
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
PYTHONPATH=$(CURDIR)/src $(MAKE) -C docs man
override_dh_auto_install:
dh_auto_install
find $(CURDIR)/debian -name cwltoil -delete
# remove the below once mesos is packaged and tested
find $(CURDIR)/debian -name _toil_mesos_executor -delete
# more py3 test fixes need to be cherry-picked from upstream
# override_dh_auto_test:
# PYBUILD_SYSTEM=custom \
# PYBUILD_TEST_ARGS='TOIL_SKIP_DOCKER=True {interpreter} -m pytest -vv \
# -W ignore \
# -k "not test_bioconda and not test_run_conformance and not testImportFtpFile" -n auto\
{dir}/src/toil/test' dh_auto_test --buildsystem pybuild
# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
#override_dh_auto_build:
# dh_auto_build
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
override_dh_auto_clean:
rm -rf .pybuild
rm -rf docs/_build
find . -name "*.pyc" -delete
|