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
|
#!/usr/bin/make -f
PYVERS := $(shell pyversions -s)
%:
dh $@ --with sphinxdoc
override_dh_auto_install:
set -e ; \
for python in $(PYVERS); do \
$$python setup.py install --prefix $(CURDIR)/debian/python-mpltoolkits.basemap/usr --install-layout=deb; \
$$python-dbg setup.py install --prefix $(CURDIR)/debian/python-mpltoolkits.basemap/usr --install-layout=deb; \
done
dh_numpy
override_dh_pysupport:
dh_pysupport
# remove namespace file, already shipped with python-matplotlib
rm $(CURDIR)/debian/python-mpltoolkits.basemap/usr/share/pyshared/mpl_toolkits/__init__.py
build: build-arch build-indep ;
build-arch:
dh build
build-indep:
# build doc only for default python version
LIB=$$(python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
(export MPLCONFIGDIR=. ; cd doc ; PYTHONPATH=$$LIB python make.py html)
override_dh_sphinxdoc:
dh_sphinxdoc -i
override_dh_clean:
dh_clean
rm -rf doc/build
rm -f nad2bin.o nad2bin
override_dh_builddeb:
dh_builddeb -- -Zxz
|