BUILDDIR = $(CURDIR)/build
DISTDIR = $(CURDIR)/dist
-# stupid distutils, it's broken in so many ways
SUBBUILDDIR = $(shell python -c 'import distutils.util, sys; \
print "lib.%s-%s" % (distutils.util.get_platform(), \
sys.version[0:3])')
PYTHON25 := $(shell python -c 'import sys; v = sys.version_info; \
print (1 if v[0] <= 2 and v[1] <= 5 else 0)')
+ifeq ($(PYTHON25),0)
+BUILDDIR := $(BUILDDIR)/$(SUBBUILDDIR)
+else
BUILDDIR := $(BUILDDIR)/lib
+endif
PYPATH = $(BUILDDIR):$(TESTLIB):$(PYTHONPATH)
COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
test-one: all
echo $(file) $(case)
- PYTHONPATH="$(PYPATH)" python $(file) $(case)
+ PYTHONPATH="$(PYPATH)" $(file) $(case)
coverage: all
rm -f .coverage