From: Paul Brossier Date: Fri, 8 Mar 2013 02:52:51 +0000 (-0500) Subject: python/setup.py: move package_dir to lib X-Git-Tag: 0.4.0-beta1~219 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1ee40338d4e3f39a2a1b1a8cc1651d9eade1982d;p=aubio.git python/setup.py: move package_dir to lib --- diff --git a/python/aubio/__init__.py b/python/aubio/__init__.py deleted file mode 100644 index 136848b1..00000000 --- a/python/aubio/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -import numpy -from _aubio import * - -class fvec(numpy.ndarray): - - def __new__(self, length = 1024, **kwargs): - if type(length) == type([]): - return numpy.array(length, dtype='float32', **kwargs) - return numpy.zeros(length, dtype='float32', **kwargs) diff --git a/python/lib/aubio/__init__.py b/python/lib/aubio/__init__.py new file mode 100644 index 00000000..136848b1 --- /dev/null +++ b/python/lib/aubio/__init__.py @@ -0,0 +1,9 @@ +import numpy +from _aubio import * + +class fvec(numpy.ndarray): + + def __new__(self, length = 1024, **kwargs): + if type(length) == type([]): + return numpy.array(length, dtype='float32', **kwargs) + return numpy.zeros(length, dtype='float32', **kwargs) diff --git a/python/setup.py b/python/setup.py index 8c466b56..c7cef374 100755 --- a/python/setup.py +++ b/python/setup.py @@ -78,6 +78,7 @@ classifiers = [ distrib = setup(name='aubio', version = __version__, + package_dir = {'':'lib'}, packages = ['aubio'], ext_modules = [aubio_extension], description = 'interface to the aubio library',