| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
include /usr/share/dpkg/default.mk |
| 5 |
PACKAGE_NAME = python3-nitime |
| 6 |
PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME} |
| 7 |
INSTALL_PATH = $(CURDIR)/debian/tmp |
| 8 |
PYTHON=$(shell py3versions --default) |
| 9 |
|
| 10 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 11 |
|
| 12 |
# override matplotlib config directory |
| 13 |
export MPLCONFIGDIR=$(CURDIR)/build |
| 14 |
export HOME=$(CURDIR)/build |
| 15 |
|
| 16 |
ifneq (,$(findstring $(DEB_HOST_ARCH_BITS),32)) |
| 17 |
export PYBUILD_TEST_ARGS=-k "not ( \ |
| 18 |
test_UniformTime_index_at \ |
| 19 |
or test_basic_slicing \ |
| 20 |
or test_index_at_20101206 \ |
| 21 |
or test_timearray_math_functions \ |
| 22 |
)" --pyargs nitime |
| 23 |
else |
| 24 |
export PYBUILD_TEST_ARGS=--pyargs nitime |
| 25 |
endif |
| 26 |
# skip some test on 32-bit systems. |
| 27 |
|
| 28 |
%: |
| 29 |
dh $@ --buildsystem pybuild |
| 30 |
|
| 31 |
execute_after_dh_auto_install: |
| 32 |
mkdir -p $(MPLCONFIGDIR) # just in case |
| 33 |
# Prune duplicate LICENSE file |
| 34 |
find debian/ -name LICENSE -delete |
| 35 |
# Remove stray coverage.xml report(s). |
| 36 |
rm -vf $(INSTALL_PATH)/usr/lib/python*/dist-packages/coverage.xml |
| 37 |
# Only now lets build docs |
| 38 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 39 |
export PYTHONPATH=$$(/bin/ls -d $(INSTALL_PATH)/usr/lib/$(PYTHON)/*-packages); \ |
| 40 |
$(MAKE) -C doc html-no-exec |
| 41 |
# TODO: remove -no-exec when doc/examples/filtering_fmri.py is fixed |
| 42 |
-rm doc/_build/html/_static/jquery.js |
| 43 |
-rm doc/_build/html/_static/underscore.js |
| 44 |
-rm -r doc/_build/html/_sources |
| 45 |
for f in `find . -name "*.html"`; do \ |
| 46 |
sed -i -e '/cloudflare/d' -e '/jsdelivr/d' $$f; \ |
| 47 |
done |
| 48 |
endif |
| 49 |
|
| 50 |
## immediately useable documentation |
| 51 |
## and exemplar data (they are small excerpts anyway) |
| 52 |
override_dh_compress: |
| 53 |
dh_compress \ |
| 54 |
-X.py \ |
| 55 |
-X.html \ |
| 56 |
-X.css \ |
| 57 |
-X.jpg \ |
| 58 |
-X.txt \ |
| 59 |
-X.js \ |
| 60 |
-X.json \ |
| 61 |
-X.rtc \ |
| 62 |
-X.par \ |
| 63 |
-X.bin |
| 64 |
|
| 65 |
get-orig-source: |
| 66 |
-uscan --upstream-version 0 --rename |