5 # expected to be set from the specfile
8 SUBBUILDDIR = $(shell python -c 'import distutils.util, sys; print "lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])')
9 BUILDDIR := $(BUILDDIR)/$(SUBBUILDDIR)
11 COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
18 ./setup.py install --root=$(DESTDIR)
22 for i in `find "$(TEST)" -perm -u+x -type f`; do \
24 PYTHONPATH="$(BUILDDIR):$$PYTHONPATH" $$i || retval=$$?; \
29 for i in `find "$(TEST)" -perm -u+x -type f`; do \
31 PYTHONPATH="$(BUILDDIR):$$PYTHONPATH" $(COVERAGE) -x $$i; \
33 $(COVERAGE) -r -m `find "$(BUILDDIR)" -name \\*.py -type f`
38 rm -f `find -name \*.pyc` .coverage
46 .PHONY: clean distclean dist test coverage install