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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
DEB_INSTALL_EXAMPLES_python-pycha := examples/*
DEB_DH_ALWAYS_EXCLUDE := .svn
DEB_COMPRESS_EXCLUDE := .py
DEB_INSTALL_CHANGELOGS_ALL = CHANGES.txt
# Launch unittests
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
binary-post-install/python-pycha:: binary-post-install/%:
PYTHONPATH='debian/$(cdbs_curpkg)/usr/share/python-support/$(cdbs_curpkg)/' \
python tests/runner.py
# Importing the modules generates .pyc files, and dh_python (which
# normally cleans them) has already been run. Remove them manually.
find 'debian/$(cdbs_curpkg)' -name '*.py[co]' -print0 \
| xargs -0 rm -f --
endif
clean::
# This file has been modified and we don't need it
rm pycha.egg-info/SOURCES.txt
|