- Timestamp:
- Mar 5, 2013, 8:10:57 PM (12 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:
- 4d3b573
- Parents:
- 63f6c13
- Location:
- python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubio-types.h
r63f6c13 r41399bd 23 23 24 24 #define AUBIO_UNSTABLE 1 25 #ifdef LOCAL_AUBIO 25 26 #include "aubio.h" 27 #else 28 #include "aubio/aubio.h" 29 #endif 26 30 27 31 #define Py_default_vector_length 1024 -
python/setup.py
r63f6c13 r41399bd 12 12 + AUBIO_VERSION_STATUS 13 13 14 library_dirs = ['../build/src'] 15 include_dirs = ['../src'] # aubio.h 16 include_dirs += ['../build/src'] # config.h 14 include_dirs = [] 15 library_dirs = [] 16 define_macros = [] 17 17 18 include_dirs += ['ext'] 18 include_dirs += ['gen'] 19 #include_dirs += ['../build/src', '../src', '.' ] 20 21 library_dirs = filter (lambda x: os.path.isdir(x), library_dirs) 22 include_dirs = filter (lambda x: os.path.isdir(x), include_dirs) 23 24 generated_object_files = [] 19 include_dirs += [ numpy.get_include() ] 25 20 26 21 output_path = 'gen' 22 generated_object_files = [] 27 23 28 24 if not os.path.isdir(output_path): 29 25 from generator import generate_object_files 30 26 generated_object_files = generate_object_files(output_path) 27 # define include dirs 31 28 else: 32 29 import glob 33 30 generated_object_files = glob.glob(os.path.join(output_path, '*.c')) 31 include_dirs += [output_path] 32 33 if os.path.isfile('../src/aubio.h'): 34 define_macros += [('USE_LOCAL_AUBIO', 1)] 35 include_dirs += ['../src'] # aubio.h 36 include_dirs += ['../build/src'] # config.h 37 library_dirs += ['../build/src'] 34 38 35 39 aubio_extension = Extension("aubio._aubio", [ … … 46 50 # generated files 47 51 ] + generated_object_files, 48 include_dirs = include_dirs + [ numpy.get_include() ],52 include_dirs = include_dirs, 49 53 library_dirs = library_dirs, 54 define_macros = define_macros, 50 55 libraries=['aubio']) 51 56
Note: See TracChangeset
for help on using the changeset viewer.