Commit b5ef8214 authored by Martín Ferrari's avatar Martín Ferrari

Try to workaround distutils brokenness

parent 1e51417b
SRC = src/
TEST = t/
BUILDDIR = build/lib/
DISTDIR = dist/
SRC = src
TEST = t
BUILDDIR = build
DISTDIR = 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
COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
coverage)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment