Changes in / [115b452:cc4987a]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified python/lib/moresetuptools.py ¶
r115b452 rcc4987a 56 56 ext.libraries += ['aubio'] 57 57 58 def add_local_aubio_sources(ext , usedouble = False):58 def add_local_aubio_sources(ext): 59 59 """ build aubio inside python module instead of linking against libaubio """ 60 60 print("Info: libaubio was not installed or built locally with waf, adding src/") … … 64 64 65 65 def add_local_macros(ext, usedouble = False): 66 if usedouble: 67 ext.define_macros += [('HAVE_AUBIO_DOUBLE', 1)] 66 68 # define macros (waf puts them in build/src/config.h) 67 69 for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H', … … 156 158 def build_extension(self, extension): 157 159 if self.enable_double or 'HAVE_AUBIO_DOUBLE' in os.environ: 158 extension.define_macros += [('HAVE_AUBIO_DOUBLE', 1)]159 160 enable_double = True 160 161 else: … … 167 168 if os.path.isfile(os.path.join('src', 'aubio.h')): 168 169 add_local_aubio_header(extension) 169 add_local_macros(extension )170 add_local_macros(extension, usedouble=enable_double) 170 171 # look for a local waf build 171 172 if os.path.isfile(os.path.join('build','src', 'fvec.c.1.o')): … … 175 176 add_external_deps(extension, usedouble=enable_double) 176 177 # add libaubio sources and look for optional deps with pkg-config 177 add_local_aubio_sources(extension , usedouble=enable_double)178 add_local_aubio_sources(extension) 178 179 # generate files python/gen/*.c, python/gen/aubio-generated.h 179 180 extension.include_dirs += [ output_path ] -
TabularUnified python/tests/test_sink.py ¶
r115b452 rcc4987a 118 118 119 119 def test_read_with(self): 120 sink_path =get_tmp_sink_path() 120 samplerate = 44100 121 sink_path = get_tmp_sink_path() 121 122 vec = fvec(128) 122 123 with sink(sink_path, samplerate) as g: 123 for iin range(10):124 for _ in range(10): 124 125 g(vec, 128) 125 126 -
TabularUnified python/tests/test_source.py ¶
r115b452 rcc4987a 6 6 from aubio import source 7 7 from .utils import list_all_sounds 8 import numpy as np9 8 10 9 import warnings -
TabularUnified wscript ¶
r115b452 rcc4987a 251 251 # one of fftwf or fftw3f 252 252 if (ctx.options.enable_fftw3f != False): 253 ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',254 args = '--cflags --libs ',253 ctx.check_cfg(package = 'fftw3f', 254 args = '--cflags --libs fftw3f >= 3.0.0', 255 255 mandatory = ctx.options.enable_fftw3f) 256 256 if (ctx.options.enable_double == True): … … 261 261 # enable_double 262 262 if (ctx.options.enable_double == True): 263 ctx.check_cfg(package = 'fftw3', atleast_version = '3.0.0',264 args = '--cflags --libs ', mandatory =265 ctx.options.enable_fftw3)263 ctx.check_cfg(package = 'fftw3', 264 args = '--cflags --libs fftw3 >= 3.0.0.', 265 mandatory = ctx.options.enable_fftw3) 266 266 else: 267 ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',268 args = '--cflags --libs ',267 ctx.check_cfg(package = 'fftw3f', 268 args = '--cflags --libs fftw3f >= 3.0.0', 269 269 mandatory = ctx.options.enable_fftw3) 270 270 ctx.define('HAVE_FFTW3', 1) … … 282 282 # check for libsndfile 283 283 if (ctx.options.enable_sndfile != False): 284 ctx.check_cfg(package = 'sndfile', atleast_version = '1.0.4',285 args = '--cflags --libs ',284 ctx.check_cfg(package = 'sndfile', 285 args = '--cflags --libs sndfile >= 1.0.4', 286 286 mandatory = ctx.options.enable_sndfile) 287 287 … … 295 295 color = 'YELLOW') 296 296 if (ctx.options.enable_samplerate != False): 297 ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15',298 args = '--cflags --libs ',297 ctx.check_cfg(package = 'samplerate', 298 args = '--cflags --libs samplerate >= 0.0.15', 299 299 mandatory = ctx.options.enable_samplerate) 300 300 … … 307 307 # check for libav 308 308 if (ctx.options.enable_avcodec != False): 309 ctx.check_cfg(package = 'libavcodec', atleast_version = '54.35.0', 310 args = '--cflags --libs', uselib_store = 'AVCODEC', 309 ctx.check_cfg(package = 'libavcodec', 310 args = '--cflags --libs libavcodec >= 54.35.0', 311 uselib_store = 'AVCODEC', 311 312 mandatory = ctx.options.enable_avcodec) 312 ctx.check_cfg(package = 'libavformat', atleast_version = '52.3.0', 313 args = '--cflags --libs', uselib_store = 'AVFORMAT', 313 ctx.check_cfg(package = 'libavformat', 314 args = '--cflags --libs libavformat >= 52.3.0', 315 uselib_store = 'AVFORMAT', 314 316 mandatory = ctx.options.enable_avcodec) 315 ctx.check_cfg(package = 'libavutil', atleast_version = '52.3.0', 316 args = '--cflags --libs', uselib_store = 'AVUTIL', 317 ctx.check_cfg(package = 'libavutil', 318 args = '--cflags --libs libavutil >= 52.3.0', 319 uselib_store = 'AVUTIL', 317 320 mandatory = ctx.options.enable_avcodec) 318 ctx.check_cfg(package = 'libswresample', atleast_version = '2.3.0', 319 args = '--cflags --libs', uselib_store = 'SWRESAMPLE', 321 ctx.check_cfg(package = 'libswresample', 322 args = '--cflags --libs libswresample >= 2.3.0', 323 uselib_store = 'SWRESAMPLE', 320 324 mandatory = False) 321 325 if 'HAVE_SWRESAMPLE' not in ctx.env: 322 ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1', 323 args = '--cflags --libs', uselib_store = 'AVRESAMPLE', 326 ctx.check_cfg(package = 'libavresample', 327 args = '--cflags --libs libavresample >= 1.0.1', 328 uselib_store = 'AVRESAMPLE', 324 329 mandatory = False) 325 330
Note: See TracChangeset
for help on using the changeset viewer.