File: rules

package info (click to toggle)
toil 3.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,920 kB
  • sloc: python: 30,989; sh: 485; makefile: 393
file content (42 lines) | stat: -rwxr-xr-x 1,351 bytes parent folder | download
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