Changes in / [24c207f:91fa88d]
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
r24c207f r91fa88d 1 1 aubio library 2 2 ============= 3 [](https://travis-ci.org/aubio/aubio "Travis build status")4 [](https://ci.appveyor.com/project/aubio/aubio/branch/master "Appveyor build status")5 [](https://landscape.io/github/aubio/aubio/master "Landscape code health")6 [](http://aubio.readthedocs.io/en/latest/?badge=latest "Documentation status")7 [](https://github.com/aubio/aubio "Commits since last release")8 3 9 4 aubio is a library to label music and sounds. It listens to audio signals and -
python/lib/moresetuptools.py
r24c207f r91fa88d 5 5 from .gen_external import generate_external, header, output_path 6 6 7 from this_version import get_aubio_version 7 def get_aubio_version(): 8 # read from VERSION 9 this_file_dir = os.path.dirname(os.path.abspath(__file__)) 10 version_file = os.path.join(this_file_dir, '..', '..', 'VERSION') 11 12 if not os.path.isfile(version_file): 13 raise SystemError("VERSION file not found.") 14 15 for l in open(version_file).readlines(): 16 #exec (l.strip()) 17 if l.startswith('AUBIO_MAJOR_VERSION'): 18 AUBIO_MAJOR_VERSION = int(l.split('=')[1]) 19 if l.startswith('AUBIO_MINOR_VERSION'): 20 AUBIO_MINOR_VERSION = int(l.split('=')[1]) 21 if l.startswith('AUBIO_PATCH_VERSION'): 22 AUBIO_PATCH_VERSION = int(l.split('=')[1]) 23 if l.startswith('AUBIO_VERSION_STATUS'): 24 AUBIO_VERSION_STATUS = l.split('=')[1].strip()[1:-1] 25 26 if AUBIO_MAJOR_VERSION is None or AUBIO_MINOR_VERSION is None \ 27 or AUBIO_PATCH_VERSION is None: 28 raise SystemError("Failed parsing VERSION file.") 29 30 verstr = '.'.join(map(str, [AUBIO_MAJOR_VERSION, 31 AUBIO_MINOR_VERSION, 32 AUBIO_PATCH_VERSION])) 33 34 if AUBIO_VERSION_STATUS is not None: 35 verstr += AUBIO_VERSION_STATUS 36 return verstr 37 38 def get_aubio_pyversion(): 39 # convert to version for python according to pep 440 40 # see https://www.python.org/dev/peps/pep-0440/ 41 verstr = get_aubio_version() 42 if '~alpha' in verstr: 43 verstr = verstr.split('~')[0] + 'a1' 44 # TODO: add rc, .dev, and .post suffixes, add numbering 45 return verstr 8 46 9 47 # inspired from https://gist.github.com/abergmeier/9488990 -
setup.py
r24c207f r91fa88d 6 6 # function to generate gen/*.{c,h} 7 7 from python.lib.gen_external import generate_external, header, output_path 8 from this_version import get_aubio_version, get_aubio_pyversion9 8 10 __version__ = get_aubio_version() 11 __pip_version__ = get_aubio_pyversion() 9 __version__ = get_aubio_pyversion() 12 10 13 11 include_dirs = [] … … 57 55 58 56 distrib = setup(name='aubio', 59 version = __ pip_version__,57 version = __version__, 60 58 packages = ['aubio'], 61 59 package_dir = {'aubio':'python/lib/aubio'}, -
src/wscript_build
r24c207f r91fa88d 48 48 # install headers, except _priv.h ones 49 49 ctx.install_files('${INCLUDEDIR}/aubio/', 50 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h' ]),50 ctx.path.ant_glob('**/*.h', excl = ['**_priv.h', 'config.h']), 51 51 relative_trick=True) -
wscript
r24c207f r91fa88d 15 15 APPNAME = 'aubio' 16 16 17 from this_version import * 18 19 VERSION = get_aubio_version() 20 LIB_VERSION = get_libaubio_version() 17 # source VERSION 18 for l in open('VERSION').readlines(): exec (l.strip()) 19 20 VERSION = '.'.join ([str(x) for x in [ 21 AUBIO_MAJOR_VERSION, 22 AUBIO_MINOR_VERSION, 23 AUBIO_PATCH_VERSION 24 ]]) + AUBIO_VERSION_STATUS 25 26 LIB_VERSION = '.'.join ([str(x) for x in [ 27 LIBAUBIO_LT_CUR, 28 LIBAUBIO_LT_REV, 29 LIBAUBIO_LT_AGE]]) 21 30 22 31 top = '.' … … 123 132 ctx.env['DEST_OS'] = target_platform 124 133 125 version_dict = get_version_info();126 ctx.define('AUBIO_VERSION',VERSION)127 ctx.define('AUBIO_MAJOR_VERSION', version_dict['AUBIO_MAJOR_VERSION'])128 ctx.define('AUBIO_MINOR_VERSION', version_dict['AUBIO_MINOR_VERSION'])129 ctx.define('AUBIO_PATCH_VERSION', version_dict['AUBIO_PATCH_VERSION'])130 ctx.define('AUBIO_VERSION_STATUS', version_dict['AUBIO_VERSION_STATUS'])131 132 134 if ctx.options.build_type == "debug": 133 135 ctx.define('DEBUG', 1) … … 426 428 if 'MANDIR' not in bld.env: 427 429 bld.env['MANDIR'] = bld.env['DATAROOTDIR'] + '/man' 428 bld.env.VERSION = str(VERSION)430 bld.env.VERSION = VERSION 429 431 rule_str = '${TXT2MAN} -t `basename ${TGT} | cut -f 1 -d . | tr a-z A-Z`' 430 432 rule_str += ' -r ${PACKAGE}\\ ${VERSION} -P ${PACKAGE}' … … 457 459 # note: build in ../doc/_build/html, otherwise waf wont install unsigned files 458 460 if bld.env['SPHINX']: 459 bld.env.VERSION = str(VERSION)461 bld.env.VERSION = VERSION 460 462 bld( name = 'sphinx', 461 463 rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`',
Note: See TracChangeset
for help on using the changeset viewer.