map01bf@620: #!/usr/bin/env python map01bf@620: # encoding: utf-8 map01bf@620: """ map01bf@620: setup.py map01bf@620: map01bf@620: distutil file for rubberband wrapper map01bf@620: map01bf@620: If the dylib isn't loading correctly, make sure the path to it is in map01bf@620: the $DYLD_LIBRARY_PATH enviromental variable. map01bf@620: the include_dirs must point to the locations of the following h files: map01bf@620: python.h map01bf@620: arrayobject.h (numpy) map01bf@620: audioDB.h map01bf@620: map01bf@620: the directory where your system's numpy inclde files can be found is autogenerated, but I sort of made up the method. map01bf@620: I'm sure there's a better way and this has only been tested on my system. map01bf@620: map01bf@620: Created by Benjamin Fields on 2009-09-04. map01bf@620: Copyright (c) 2009 Goldsmith University of London. All rights reserved. map01bf@620: map01bf@620: """ map01bf@620: map01bf@620: from distutils.core import setup, Extension map01bf@620: from numpy import __path__ as numpyBase map01bf@620: from os.path import join map01bf@620: map01bf@620: module1 = Extension('_pyadb', map01bf@620: define_macros = [('MAJOR_VERSION', '0'), map01bf@717: ('MINOR_VERSION', '2')], map01bf@620: include_dirs = ['/opt/local/include', '../../', join(numpyBase[0],'core/include')], mas01mj@629: libraries = ['audioDB'], map01bf@620: library_dirs = ['../../', '/opt/local/lib'], map01bf@620: sources = ['pyadbmodule.c']) map01bf@620: map01bf@620: map01bf@620: setup (name = 'pyadb', map01bf@717: version = '0.2a', map01bf@620: description = 'AudioDB is a vector based similiarity and matching tool.', map01bf@620: maintainer = 'Benjamin Fields', map01bf@620: maintainer_email = 'b.fields@gold.ac.uk', map01bf@625: ext_modules = [module1], map01bf@625: py_modules=['pyadb'], map01bf@625: ) map01bf@620: