shithub: aubio

Download patch

ref: f131ba849aaae809214f5c74c97a69981c361692
parent: 227aa1c1e3817780871347f6f3096beecc54d8f7
author: Paul Brossier <piem@piem.org>
date: Sat Jan 21 18:17:03 EST 2017

python/lib/moresetuptools.py: add comments, improve syntax

--- a/python/lib/moresetuptools.py
+++ b/python/lib/moresetuptools.py
@@ -36,9 +36,12 @@
     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 @@
                 #'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")