#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=numba

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -Wd -m pytest {build_dir}/numba/tests -v -rs" dh_auto_test || true # temporarily failsafed

override_dh_installchangelogs:
	dh_installchangelogs -A CHANGE_LOG

override_dh_installdocs:
	dh_installdocs -A README.rst
	python3 setup.py build_ext -i # docs need extensions in-place to build
	PYTHONPATH=. sphinx-build -N -bhtml docs/source/ debian/numba-doc/usr/share/doc/numba-doc/html/

override_dh_compress:
	dh_compress -X.ipynb -X.ods -X.py # save examples and notebooks
