Changes in setup.py [38f3d04:bc1ed63]
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r38f3d04 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 from python.lib.moresetuptools import build_ext, CleanGenerated 7 8 # add ./python/lib to current path 9 sys.path.append(os.path.join('python', 'lib')) # noqa 10 from moresetuptools import build_ext, CleanGenerated 11 6 12 # function to generate gen/*.{c,h} 7 13 from this_version import get_aubio_version, get_aubio_pyversion … … 15 21 extra_link_args = [] 16 22 17 include_dirs += [ 'python/ext']23 include_dirs += ['python/ext'] 18 24 try: 19 25 import numpy 20 include_dirs += [ numpy.get_include()]26 include_dirs += [numpy.get_include()] 21 27 except ImportError: 22 28 pass 23 29 24 30 if sys.platform.startswith('darwin'): 25 extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox'] 31 extra_link_args += ['-framework', 'CoreFoundation', 32 '-framework', 'AudioToolbox'] 26 33 27 34 sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c'))) … … 34 41 define_macros = define_macros) 35 42 36 if os.path.isfile('src/aubio.h'): 37 if not os.path.isdir(os.path.join('build','src')): 38 pass 39 #__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 40 48 41 49 classifiers = [ … … 51 59 'Programming Language :: C', 52 60 'Programming Language :: Python', 53 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 61 'License :: OSI Approved :: ' 62 'GNU General Public License v3 or later (GPLv3+)', 54 63 ] 55 64 … … 57 66 version = __version__, 58 67 packages = ['aubio'], 59 package_dir = {'aubio':'python/lib/aubio'}, 60 scripts = ['python/scripts/aubiocut'], 68 package_dir = {'aubio': 'python/lib/aubio'}, 61 69 ext_modules = [aubio_extension], 62 70 description = 'a collection of tools for music analysis', … … 76 84 'build_ext': build_ext, 77 85 }, 86 entry_points = { 87 'console_scripts': [ 88 'aubio = aubio.cmd:main', 89 'aubiocut = aubio.cut:main', 90 ], 91 }, 78 92 test_suite = 'nose2.collector.collector', 79 93 extras_require = {
Note: See TracChangeset
for help on using the changeset viewer.