Changeset 4cb48d2
- Timestamp:
- Mar 23, 2017, 8:43:47 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- 6448d31
- Parents:
- da1a83f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/moresetuptools.py
rda1a83f r4cb48d2 94 94 ext.libraries += ['aubio'] 95 95 96 def add_local_aubio_sources(ext , usedouble = False):96 def add_local_aubio_sources(ext): 97 97 """ build aubio inside python module instead of linking against libaubio """ 98 98 print("Info: libaubio was not installed or built locally with waf, adding src/") … … 102 102 103 103 def add_local_macros(ext, usedouble = False): 104 if usedouble: 105 ext.define_macros += [('HAVE_AUBIO_DOUBLE', 1)] 104 106 # define macros (waf puts them in build/src/config.h) 105 107 for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H', … … 194 196 def build_extension(self, extension): 195 197 if self.enable_double or 'HAVE_AUBIO_DOUBLE' in os.environ: 196 extension.define_macros += [('HAVE_AUBIO_DOUBLE', 1)]197 198 enable_double = True 198 199 else: … … 205 206 if os.path.isfile(os.path.join('src', 'aubio.h')): 206 207 add_local_aubio_header(extension) 207 add_local_macros(extension )208 add_local_macros(extension, usedouble=enable_double) 208 209 # look for a local waf build 209 210 if os.path.isfile(os.path.join('build','src', 'fvec.c.1.o')): … … 213 214 add_external_deps(extension, usedouble=enable_double) 214 215 # add libaubio sources and look for optional deps with pkg-config 215 add_local_aubio_sources(extension , usedouble=enable_double)216 add_local_aubio_sources(extension) 216 217 # generate files python/gen/*.c, python/gen/aubio-generated.h 217 218 extension.sources += generate_external(header, output_path, overwrite = False,
Note: See TracChangeset
for help on using the changeset viewer.