From: Paul Brossier Date: Sat, 21 Jan 2017 22:17:03 +0000 (+0100) Subject: python/lib/moresetuptools.py: add comments, improve syntax X-Git-Tag: 0.4.5~103 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=f131ba849aaae809214f5c74c97a69981c361692;hp=227aa1c1e3817780871347f6f3096beecc54d8f7 python/lib/moresetuptools.py: add comments, improve syntax --- diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py index dd2a7525..7b0aa1b8 100644 --- a/python/lib/moresetuptools.py +++ b/python/lib/moresetuptools.py @@ -36,9 +36,12 @@ def get_aubio_version(): return verstr def get_aubio_pyversion(): + # convert to version for python according to pep 440 + # see https://www.python.org/dev/peps/pep-0440/ verstr = get_aubio_version() if '~alpha' in verstr: verstr = verstr.split('~')[0] + 'a1' + # TODO: add rc, .dev, and .post suffixes, add numbering return verstr # inspired from https://gist.github.com/abergmeier/9488990 @@ -116,7 +119,7 @@ def add_external_deps(ext, usedouble = False): #'fftw3f', ] # samplerate only works with float - if usedouble == False: + if usedouble is False: packages += ['samplerate'] else: print("Info: not adding libsamplerate in double precision mode")