python/setup.py: move package_dir to lib
authorPaul Brossier <piem@piem.org>
Fri, 8 Mar 2013 02:52:51 +0000 (21:52 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 8 Mar 2013 02:52:51 +0000 (21:52 -0500)
python/aubio/__init__.py [deleted file]
python/lib/aubio/__init__.py [new file with mode: 0644]
python/setup.py

diff --git a/python/aubio/__init__.py b/python/aubio/__init__.py
deleted file mode 100644 (file)
index 136848b..0000000
+++ /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 (file)
index 0000000..136848b
--- /dev/null
@@ -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)
index 8c466b5..c7cef37 100755 (executable)
@@ -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',