- Timestamp:
- Oct 3, 2016, 4:40:48 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, yinfft+
- Children:
- 5864b43
- Parents:
- 45521d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r45521d2 r8d09036 48 48 49 49 if os.path.isfile('src/aubio.h'): 50 # if aubio headers are found in this directory 51 add_local_aubio_header(aubio_extension) 52 # was waf used to build the shared lib? 53 if os.path.isdir(os.path.join('build','src')): 54 # link against build/src/libaubio, built with waf 55 add_local_aubio_lib(aubio_extension) 56 else: 57 # add libaubio sources and look for optional deps with pkg-config 58 add_local_aubio_sources(aubio_extension) 59 __version__ += 'a2' # pypi version 60 else: 61 # look for aubio headers and lib using pkg-config 62 add_system_aubio(aubio_extension) 63 50 if not os.path.isdir(os.path.join('build','src')): 51 __version__ += 'a2' # python only version 64 52 65 53 classifiers = [ … … 77 65 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 78 66 ] 79 80 from distutils.command.build_ext import build_ext as _build_ext81 class build_ext(_build_ext):82 83 def build_extension(self, extension):84 # generate files python/gen/*.c, python/gen/aubio-generated.h85 extension.sources += generate_external(header, output_path, overwrite = False)86 return _build_ext.build_extension(self, extension)87 67 88 68 distrib = setup(name='aubio', … … 105 85 cmdclass = { 106 86 'clean': CleanGenerated, 107 'generate': GenerateCommand,108 87 'build_ext': build_ext, 109 88 },
Note: See TracChangeset
for help on using the changeset viewer.