Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 EXCLUDE_TESTS =
5 # Until https://github.com/joblib/joblib/issues/1273 is open
6 EXCLUDE_TESTS += not test_nested_loop_error_in_grandchild_resource_tracker_silent
7 # Until https://github.com/joblib/joblib/issues/1328 is open
8 EXCLUDE_TESTS += and not test_resource_tracker_silent_when_reference_cycles
9 # Until https://github.com/joblib/joblib/issues/1329 is open
10 EXCLUDE_TESTS += and not test_parallel_with_interactively_defined_functions_default_backend
11
12 # This failled on buildd x86-grnet-03 but not on Salsa
13 EXCLUDE_TESTS += and not test_joblib_pickle_across_python_versions
14
15 export PYBUILD_NAME=joblib
16 export PYBUILD_TEST_ARGS := -k "$(EXCLUDE_TESTS)" --confcutdir=.
17 export PYBUILD_BEFORE_TEST=cp -v debian/conftest.py {build_dir}
18 export PYBUILD_AFTER_TEST=rm -v {build_dir}/conftest.py
19 export HOME=$(CURDIR)/debian
20
21 %:
22 dh $@ --buildsystem=pybuild
23
24 override_dh_installchangelogs:
25 dh_installchangelogs CHANGES.rst
26
27 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
28 execute_after_dh_auto_build-indep:
29 SPHINXOPTS="$(SPHINXOPTS)" pybuild --build -i python3 -s custom --build-args '$(MAKE) -C {dir}/doc html'
30 endif