projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
227aa1c
)
python/lib/moresetuptools.py: add comments, improve syntax
author
Paul Brossier
<piem@piem.org>
Sat, 21 Jan 2017 22:17:03 +0000
(23:17 +0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 21 Jan 2017 22:17:03 +0000
(23:17 +0100)
python/lib/moresetuptools.py
patch
|
blob
|
history
diff --git
a/python/lib/moresetuptools.py
b/python/lib/moresetuptools.py
index
dd2a752
..
7b0aa1b
100644
(file)
--- a/
python/lib/moresetuptools.py
+++ b/
python/lib/moresetuptools.py
@@
-36,9
+36,12
@@
def get_aubio_version():
return verstr
def get_aubio_pyversion():
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'
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
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
#'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")
packages += ['samplerate']
else:
print("Info: not adding libsamplerate in double precision mode")