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
|
#!/usr/bin/make -f
%:
dh $@ --with python2
override_dh_install:
set -e; for python in $(shell pyversions -r); do \
case $$python in \
python2.4|python2.5) \
dh_install graphy usr/lib/$$python/site-packages ;; \
python2.6|python2.7) \
dh_install graphy usr/lib/$$python/dist-packages ;; \
*) \
echo "$$python is not supported" ; exit 1 ;; \
esac \
done
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
for python in $(shell pyversions -r); do \
PYTHONPATH=. $$python graphy/all_tests.py ; \
done
endif
override_dh_auto_clean:
dh_auto_clean
find graphy -type f -name '*.pyc' -delete
get-orig-source:
cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
uscan --rename --force-download --watchfile debian/watch --destdir $(CURDIR)
|