History

python/lib/moresetuptools.py: use samplerate in single precision only

Paul Brossier committed 10 years ago

Commit 45521d21 parent 8be88e71 file · +8 −2Browse files

Showing the changes to python/lib (1 of 1 file). Show all

Unified · Split

python/lib/moresetuptools.py+8−2
@@ -52,7 +52,7 @@ def add_local_aubio_lib(ext): · 51 unmodified lines
52 ext.library_dirs += [os.path.join('build', 'src')]52 ext.library_dirs += [os.path.join('build', 'src')]
53 ext.libraries += ['aubio']53 ext.libraries += ['aubio']
54 54
55def add_local_aubio_sources(ext):55def add_local_aubio_sources(ext, usedouble = False):
56 """ build aubio inside python module instead of linking against libaubio """56 """ build aubio inside python module instead of linking against libaubio """
57 print("Warning: libaubio was not built with waf, adding src/")57 print("Warning: libaubio was not built with waf, adding src/")
58 # create an empty header, macros will be passed on the command line58 # create an empty header, macros will be passed on the command line
@@ -73,9 +73,15 @@ def add_local_aubio_sources(ext): · 14 unmodified lines
73 print("Info: looking for *optional* additional packages")73 print("Info: looking for *optional* additional packages")
74 packages = ['libavcodec', 'libavformat', 'libavutil', 'libavresample',74 packages = ['libavcodec', 'libavformat', 'libavutil', 'libavresample',
75 'jack',75 'jack',
76 'sndfile', 'samplerate',76 'jack',
77 'sndfile',
77 #'fftw3f',78 #'fftw3f',
78 ]79 ]
80 # samplerate only works with float
81 if usedouble == False:
82 packages += ['samplerate']
83 else:
84 print("Info: not adding libsamplerate in double precision mode")
79 add_packages(packages, ext=ext)85 add_packages(packages, ext=ext)
80 if 'avcodec' in ext.libraries \86 if 'avcodec' in ext.libraries \
81 and 'avformat' in ext.libraries \87 and 'avformat' in ext.libraries \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t