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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export PYBUILD_NAME=xarray
export http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9
# Disable checking for this release:
DEB_BUILD_OPTIONS += nocheck
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_clean:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
$(MAKE) -C doc clean
endif
execute_after_dh_auto_install: $(PYTHON3:%=install-python%)
find debian/python3-xarray -name '*.idx' -exec chmod -x {} \;
execute_after_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
PYTHONPATH=$(CURDIR) $(MAKE) -C doc html
endif
override_dh_sphinxdoc:
dh_sphinxdoc --exclude=MathJax.js
find debian/python-xarray-doc -name '*.html' \
-exec grep require.js {} /dev/null \; | cut -f1 -d: | while read r; do \
sed -e 's%https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4% file:/usr/share/javascript/requirejs%' \
< $$r > debian/tmp/x ; \
mv debian/tmp/x $$r ; \
done
|