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
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYVERS = $(shell pyversions -r)
PY3VERS = $(shell py3versions -r)
BUILDHOME = $(CURDIR)/debian/buildhome
%:
dh $@ --with python2,python3
override_dh_auto_build:
set -e; \
for py in $(PYVERS) $(PY3VERS); do \
$$py -B setup.py build; \
done
mkdir -p $(CURDIR)/docs/api
mkdir -p $(BUILDHOME)
HOME=$(BUILDHOME) epydoc --html -o $(CURDIR)/docs/api --name CSB --no-private --introspect-only --exclude csb.test.cases --fail-on-error --fail-on-warning --fail-on-docstring-warning $(CURDIR)/csb
override_dh_auto_clean:
set -e; \
for py in $(PYVERS) $(PY3VERS); do \
$$py -B setup.py clean -a; \
done
rm -rf $(BUILDHOME)
override_dh_auto_install:
set -e; \
for py in $(PYVERS); do \
$$py -B setup.py install --skip-build --root debian/python-csb \
--install-layout deb; \
done
set -e; \
for py in $(PY3VERS); do \
$$py -B setup.py install --skip-build --root debian/python3-csb \
--install-layout deb; \
done
override_dh_auto_test:
PYTHONPATH=$(CURDIR):$(PYTHONPATH) PYTHONWARNINGS=d python csb/test/app.py --generated-resources /tmp
|