- Timestamp:
- May 13, 2016, 6:50:20 PM (9 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 2e324f5
- Parents:
- c09efca
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
setup.py
rc09efca r1167631 1 1 #! /usr/bin/env python 2 3 from setuptools import setup, Extension4 from lib.moresetuptools import CleanGenerated, GenerateCommand5 2 6 3 import sys 7 4 import os.path 8 5 import numpy 6 from setuptools import setup, Extension 7 from python.lib.moresetuptools import CleanGenerated, GenerateCommand 8 # function to generate gen/*.{c,h} 9 from python.lib.gen_external import generate_external, header, output_path 9 10 10 11 # read from VERSION … … 14 15 + AUBIO_VERSION_STATUS 15 16 16 # function to generate gen/*.{c,h}17 from lib.gen_external import generate_external18 output_path = 'gen'19 20 17 include_dirs = [] 21 18 library_dirs = [] … … 23 20 extra_link_args = [] 24 21 25 include_dirs += [ ' ext' ]22 include_dirs += [ 'python/ext' ] 26 23 include_dirs += [ output_path ] # aubio-generated.h 27 24 include_dirs += [ numpy.get_include() ] … … 30 27 extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox'] 31 28 32 if os.path.isfile(' ../src/aubio.h'):29 if os.path.isfile('src/aubio.h'): 33 30 define_macros += [('USE_LOCAL_AUBIO', 1)] 34 include_dirs += [' ../src'] # aubio.h35 library_dirs += [' ../build/src']31 include_dirs += ['src'] # aubio.h 32 library_dirs += ['build/src'] 36 33 37 34 aubio_extension = Extension("aubio._aubio", [ 38 "ext/aubiomodule.c", 39 "ext/aubioproxy.c", 40 "ext/ufuncs.c", 41 "ext/py-musicutils.c", 42 "ext/py-cvec.c", 43 # example without macro 44 "ext/py-filter.c", 45 # macroised 46 "ext/py-filterbank.c", 47 "ext/py-fft.c", 48 "ext/py-phasevoc.c", 49 "ext/py-source.c", 50 "ext/py-sink.c", 35 "python/ext/aubiomodule.c", 36 "python/ext/aubioproxy.c", 37 "python/ext/ufuncs.c", 38 "python/ext/py-musicutils.c", 39 "python/ext/py-cvec.c", 40 "python/ext/py-filter.c", 41 "python/ext/py-filterbank.c", 42 "python/ext/py-fft.c", 43 "python/ext/py-phasevoc.c", 44 "python/ext/py-source.c", 45 "python/ext/py-sink.c", 51 46 # generate files if they don't exit 52 ] + generate_external( output_path, overwrite = False),47 ] + generate_external(header, output_path, overwrite = False), 53 48 include_dirs = include_dirs, 54 49 library_dirs = library_dirs, … … 75 70 version = __version__, 76 71 packages = ['aubio'], 77 package_dir = {'aubio':' lib/aubio'},78 scripts = [' scripts/aubiocut'],72 package_dir = {'aubio':'python/lib/aubio'}, 73 scripts = ['python/scripts/aubiocut'], 79 74 ext_modules = [aubio_extension], 80 75 description = 'interface to the aubio library', … … 92 87 'clean': CleanGenerated, 93 88 'generate': GenerateCommand, 94 } 89 }, 90 test_suite = 'nose2.collector.collector', 95 91 )
Note: See TracChangeset
for help on using the changeset viewer.