ref: 883b49986190be86cd13e1dd242cf495d0707093
parent: 911bea800f656eb9ec4f279297bc165c24e09dee
author: Paul Brossier <piem@piem.org>
date: Sat Dec 17 07:19:20 EST 2016
python/ext/aubiomodule.c: add aubio._aubio.__version__, import as aubio.version
--- a/python/ext/aubiomodule.c
+++ b/python/ext/aubiomodule.c
@@ -323,6 +323,7 @@
PyModule_AddObject (m, "sink", (PyObject *) & Py_sinkType);
PyModule_AddStringConstant(m, "float_type", AUBIO_NPY_SMPL_STR);
+ PyModule_AddStringConstant(m, "__version__", AUBIO_VERSION);
// add generated objects
add_generated_objects(m);
--- a/python/lib/aubio/__init__.py
+++ b/python/lib/aubio/__init__.py
@@ -1,8 +1,9 @@
#! /usr/bin/env python
import numpy
-from ._aubio import *
+from ._aubio import __version__ as version
from ._aubio import float_type
+from ._aubio import *
from .midiconv import *
from .slicing import *