Showing the changes to python/lib (1 of 1 file). Show all
Unified · Split
| @@ -55,10 +55,7 @@ def add_local_aubio_lib(ext): · 54 unmodified lines | |||
| 55 | 55 | ||
| 56 | def add_local_aubio_sources(ext, usedouble = False): | 56 | def add_local_aubio_sources(ext, usedouble = False): |
| 57 | """ build aubio inside python module instead of linking against libaubio """ | 57 | """ build aubio inside python module instead of linking against libaubio """ |
| 58 | print("Warning: libaubio was not built with waf, adding src/") | 58 | print("Info: libaubio was not installed or built locally with waf, adding src/") |
| 59 | # create an empty header, macros will be passed on the command line | ||
| 60 | fake_config_header = os.path.join('python', 'ext', 'config.h') | ||
| 61 | distutils.file_util.write_file(fake_config_header, "") | ||
| 62 | aubio_sources = sorted(glob.glob(os.path.join('src', '**.c'))) | 59 | aubio_sources = sorted(glob.glob(os.path.join('src', '**.c'))) |
| 63 | aubio_sources += sorted(glob.glob(os.path.join('src', '*', '**.c'))) | 60 | aubio_sources += sorted(glob.glob(os.path.join('src', '*', '**.c'))) |
| 64 | ext.sources += aubio_sources | 61 | ext.sources += aubio_sources |