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
# -*- makefile -*-
#export DH_VERBOSE=1
export DISABLE_NUMCODECS_SSE2=1
export DISABLE_NUMCODECS_AVX2=1
ifneq (,${PYBUILD_AUTOPKGTEST})
PKGDIR=/usr/lib/python3/dist-packages
else
PKGDIR=.
endif
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=numcodecs
export PYBUILD_TEST_ARGS=\
-k "not test_non_numpy_inputs \
and not test_non_numpy_inputs \
and not test_native_functions" \
-v --pyargs ${PYBUILD_NAME} \
--ignore=${PKGDIR}/numcodecs/pcodec.py \
--ignore=${PKGDIR}/numcodecs/zarr3.py \
--ignore=${PKGDIR}/numcodecs/tests/test_zarr3.py
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/fixture {build_dir}/.coverage {build_dir}/coverage.xml
%:
dh $@ --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
cd docs && \
env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
python3 -m sphinx -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
endif
execute_after_dh_sphinxdoc:
$(RM) -r debian/python3-numcodecs/usr/share/doc/python3-numcodecs/html/_static/scripts \
debian/python3-numcodecs/usr/share/doc/python3-numcodecs/html/_static/styles \
debian/python3-numcodecs/usr/share/doc/python3-numcodecs/html/_static/vendor
|