History

python/ext/aubiomodule.c: add aubio._aubio.__version__, import as aubio.version

Paul Brossier committed 9 years ago

Commit 883b4991 parent 911bea82 files · +3 −1Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/aubiomodule.c +1 −0
  2. python/lib/aubio/__init__.py +2 −1
python/ext/aubiomodule.c+1−0
@@ -323,6 +323,7 @@ initaubio (void) · 322 unmodified lines
323323 PyModule_AddObject (m, "sink", (PyObject *) & Py_sinkType);
324324
325325 PyModule_AddStringConstant(m, "float_type", AUBIO_NPY_SMPL_STR);
326+ PyModule_AddStringConstant(m, "__version__", AUBIO_VERSION);
326327
327328 // add generated objects
328329 add_generated_objects(m);
python/lib/aubio/__init__.py+2−1
@@ -1,8 +1,9 @@
11 #! /usr/bin/env python
22
33 import numpy
4−from ._aubio import *
4+from ._aubio import __version__ as version
55 from ._aubio import float_type
6+from ._aubio import *
67 from .midiconv import *
78 from .slicing import *
89

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t