setup.py: define AUBIO_VERSION
authorPaul Brossier <piem@piem.org>
Sat, 17 Dec 2016 11:18:19 +0000 (12:18 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 17 Dec 2016 11:18:19 +0000 (12:18 +0100)
setup.py

index 9f55848..d62f9ed 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ if AUBIO_VERSION_STATUS is not None:
 
 include_dirs = []
 library_dirs = []
 
 include_dirs = []
 library_dirs = []
-define_macros = []
+define_macros = [('AUBIO_VERSION', '"%s"' % __version__)]
 extra_link_args = []
 
 include_dirs += [ 'python/ext' ]
 extra_link_args = []
 
 include_dirs += [ 'python/ext' ]