Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r38f3d04 rbc1ed63  
    11#! /usr/bin/env python
    22
    3 import sys, os.path, glob
     3import sys
     4import os.path
     5import glob
    46from setuptools import setup, Extension
    5 from python.lib.moresetuptools import build_ext, CleanGenerated
     7
     8# add ./python/lib to current path
     9sys.path.append(os.path.join('python', 'lib'))  # noqa
     10from moresetuptools import build_ext, CleanGenerated
     11
    612# function to generate gen/*.{c,h}
    713from this_version import get_aubio_version, get_aubio_pyversion
     
    1521extra_link_args = []
    1622
    17 include_dirs += [ 'python/ext' ]
     23include_dirs += ['python/ext']
    1824try:
    1925    import numpy
    20     include_dirs += [ numpy.get_include() ]
     26    include_dirs += [numpy.get_include()]
    2127except ImportError:
    2228    pass
    2329
    2430if sys.platform.startswith('darwin'):
    25     extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
     31    extra_link_args += ['-framework', 'CoreFoundation',
     32            '-framework', 'AudioToolbox']
    2633
    2734sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c')))
     
    3441    define_macros = define_macros)
    3542
    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
    4048
    4149classifiers = [
     
    5159    'Programming Language :: C',
    5260    '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+)',
    5463    ]
    5564
     
    5766    version = __version__,
    5867    packages = ['aubio'],
    59     package_dir = {'aubio':'python/lib/aubio'},
    60     scripts = ['python/scripts/aubiocut'],
     68    package_dir = {'aubio': 'python/lib/aubio'},
    6169    ext_modules = [aubio_extension],
    6270    description = 'a collection of tools for music analysis',
     
    7684        'build_ext': build_ext,
    7785        },
     86    entry_points = {
     87        'console_scripts': [
     88            'aubio = aubio.cmd:main',
     89            'aubiocut = aubio.cut:main',
     90        ],
     91    },
    7892    test_suite = 'nose2.collector.collector',
    7993    extras_require = {
Note: See TracChangeset for help on using the changeset viewer.