annotate bindings/python/Makefile @ 672:a35ca2d5f238

Extend results structure to include a key for the query. Fill that key from the query datum, if given, defaulting to ""; patch up bindings and tests. This is so that (Instance x Instance) operations such as querying and sampling can be supported.
author mas01cr
date Fri, 05 Mar 2010 16:00:53 +0000
parents ce5ff00168e1
children
rev   line source
map01bf@668 1 EXECUTABLE=audioDB
map01bf@668 2 SOVERSION=0
map01bf@668 3 MINORVERSION=0
map01bf@668 4 LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
map01bf@668 5
map01bf@668 6 ifeq ($(shell uname),Darwin)
map01bf@668 7 override LIBRARY=lib$(EXECUTABLE).$(SOVERSION).$(MINORVERSION).dylib
map01bf@668 8 endif
map01bf@668 9
mas01cr@664 10 all:
mas01cr@664 11 python setup.py build
mas01cr@664 12
map01bf@668 13 test: ../../$(LIBRARY) all
mas01cr@666 14 (cd tests && \
mas01cr@667 15 env PYTHONPATH=$$(python -c 'import distutils; import distutils.util; import sys; print "../build/lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') \
mas01cr@666 16 LD_LIBRARY_PATH=../../.. \
mas01cr@666 17 python InitialisationRelated.py)
mas01cr@666 18
mas01cr@666 19 clean:
mas01cr@666 20 rm -rf tests/test* pyadb.pyc build