Changeset ad5203c for python/setup.py
- Timestamp:
- Mar 5, 2013, 5:46:48 PM (11 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:
- 63f6c13
- Parents:
- 208336b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/setup.py
r208336b rad5203c 2 2 3 3 from distutils.core import setup, Extension 4 from generator import generate_object_files5 4 import sys 6 5 import os.path … … 8 7 9 8 # read from VERSION 10 for l in open( os.path.join('..','VERSION')).readlines(): exec (l.strip())9 for l in open('VERSION').readlines(): exec (l.strip()) 11 10 __version__ = '.'.join \ 12 11 ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \ 13 12 + AUBIO_VERSION_STATUS 14 13 15 library_dirs = ['../build/src', '../src/.libs'] 16 include_dirs = ['../build/src', '../src', '.' ] 14 library_dirs = ['../build/src'] 15 include_dirs = ['../src'] # aubio.h 16 include_dirs += ['../build/src'] # config.h 17 include_dirs += ['ext'] 18 include_dirs += ['gen'] 19 #include_dirs += ['../build/src', '../src', '.' ] 20 17 21 library_dirs = filter (lambda x: os.path.isdir(x), library_dirs) 18 22 include_dirs = filter (lambda x: os.path.isdir(x), include_dirs) 23 24 generated_object_files = [] 25 26 output_path = 'gen' 27 28 if not os.path.isdir(output_path): 29 from generator import generate_object_files 30 generated_object_files = generate_object_files(output_path) 31 else: 32 import glob 33 generated_object_files = glob.glob(os.path.join(output_path, '*.c')) 19 34 20 35 aubio_extension = Extension("aubio._aubio", [ … … 30 45 "ext/py-phasevoc.c", 31 46 # generated files 32 ] + generate _object_files(),47 ] + generated_object_files, 33 48 include_dirs = include_dirs + [ numpy.get_include() ], 34 49 library_dirs = library_dirs,
Note: See TracChangeset
for help on using the changeset viewer.