Changeset 67a3053 for python/lib
- Timestamp:
- Apr 10, 2017, 10:30:50 AM (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:
- 2610b66
- Parents:
- ede63e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/moresetuptools.py
rede63e3 r67a3053 117 117 ext.define_macros += [('HAVE_WAVWRITE', 1)] 118 118 ext.define_macros += [('HAVE_WAVREAD', 1)] 119 # TODO: 120 # add cblas119 120 # TODO: add cblas 121 121 if 0: 122 122 ext.libraries += ['cblas'] … … 131 131 else: 132 132 print("Info: using system aubio " + aubio_version + " found in " + ' '.join(ext.library_dirs)) 133 134 def add_libav_on_win(ext): 135 """ no pkg-config on windows, simply assume these libs are available """ 136 ext.libraries += ['avformat', 'avutil', 'avcodec', 'swresample'] 137 for define_macro in ['HAVE_LIBAV', 'HAVE_SWRESAMPLE']: 138 ext.define_macros += [(define_macro, 1)] 133 139 134 140 class CleanGenerated(distutils.command.clean.clean): … … 175 181 # check for external dependencies 176 182 add_external_deps(extension, usedouble=enable_double) 183 # force adding libav on windows 184 if os.name == 'nt' and ('WITH_LIBAV' in os.environ \ 185 or 'CONDA_PREFIX' in os.environ): 186 add_libav_on_win(extension) 177 187 # add libaubio sources and look for optional deps with pkg-config 178 188 add_local_aubio_sources(extension)
Note: See TracChangeset
for help on using the changeset viewer.