Changeset bc1ed63
- Timestamp:
- Nov 5, 2018, 2:08:00 PM (6 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
- Children:
- 568fc60, 98c712e
- Parents:
- dc74f69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
rdc74f69 rbc1ed63 1 1 #! /usr/bin/env python 2 2 3 import sys, os.path, glob 3 import sys 4 import os.path 5 import glob 4 6 from setuptools import setup, Extension 5 7 6 8 # add ./python/lib to current path 7 sys.path.append(os.path.join('python', 'lib')) 9 sys.path.append(os.path.join('python', 'lib')) # noqa 8 10 from moresetuptools import build_ext, CleanGenerated 9 11 … … 19 21 extra_link_args = [] 20 22 21 include_dirs += [ 'python/ext']23 include_dirs += ['python/ext'] 22 24 try: 23 25 import numpy 24 include_dirs += [ numpy.get_include()]26 include_dirs += [numpy.get_include()] 25 27 except ImportError: 26 28 pass 27 29 28 30 if sys.platform.startswith('darwin'): 29 extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox'] 31 extra_link_args += ['-framework', 'CoreFoundation', 32 '-framework', 'AudioToolbox'] 30 33 31 34 sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c'))) … … 38 41 define_macros = define_macros) 39 42 40 if os.path.isfile('src/aubio.h'): 41 if not os.path.isdir(os.path.join('build','src')): 42 pass 43 #__version__ += 'a2' # python only version 43 # TODO: find a way to track if package is built against libaubio 44 # if os.path.isfile('src/aubio.h'): 45 # if not os.path.isdir(os.path.join('build','src')): 46 # pass 47 # #__version__ += 'a2' # python only version 44 48 45 49 classifiers = [ … … 55 59 'Programming Language :: C', 56 60 'Programming Language :: Python', 57 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 61 'License :: OSI Approved :: ' 62 'GNU General Public License v3 or later (GPLv3+)', 58 63 ] 59 64 … … 61 66 version = __version__, 62 67 packages = ['aubio'], 63 package_dir = {'aubio': 'python/lib/aubio'},68 package_dir = {'aubio': 'python/lib/aubio'}, 64 69 ext_modules = [aubio_extension], 65 70 description = 'a collection of tools for music analysis',
Note: See TracChangeset
for help on using the changeset viewer.