Changeset 4d3b573


Ignore:
Timestamp:
Mar 5, 2013, 10:23:29 PM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
6f0ef4d
Parents:
41399bd
Message:

setup.py: improve, update MANIFEST.in

Location:
python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/MANIFEST.in

    r41399bd r4d3b573  
    44include generator.py
    55include gen_pyobject.py
     6include aubio/*.py
    67include demos/*.py
    78include tests/run_all_tests
  • python/setup.py

    r41399bd r4d3b573  
    22
    33from distutils.core import setup, Extension
     4
    45import sys
    56import os.path
     
    1213        + AUBIO_VERSION_STATUS
    1314
     15
    1416include_dirs = []
    1517library_dirs = []
    1618define_macros = []
     19extra_link_args = []
    1720
    1821include_dirs += ['ext']
    1922include_dirs += [ numpy.get_include() ]
     23
     24if sys.platform.startswith('darwin'):
     25    extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
    2026
    2127output_path = 'gen'
     
    3844
    3945aubio_extension = Extension("aubio._aubio", [
    40             "ext/aubiomodule.c",
    41             "ext/aubioproxy.c",
    42             "ext/ufuncs.c",
    43             "ext/py-cvec.c",
    44             # example without macro
    45             "ext/py-filter.c",
    46             # macroised
    47             "ext/py-filterbank.c",
    48             "ext/py-fft.c",
    49             "ext/py-phasevoc.c",
    50             # generated files
    51             ] + generated_object_files,
    52         include_dirs = include_dirs,
    53         library_dirs = library_dirs,
    54         define_macros = define_macros,
    55         libraries=['aubio'])
    56 
    57 if sys.platform.startswith('darwin'):
    58         aubio_extension.extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox']
     46    "ext/aubiomodule.c",
     47    "ext/aubioproxy.c",
     48    "ext/ufuncs.c",
     49    "ext/py-cvec.c",
     50    # example without macro
     51    "ext/py-filter.c",
     52    # macroised
     53    "ext/py-filterbank.c",
     54    "ext/py-fft.c",
     55    "ext/py-phasevoc.c",
     56    # generated files
     57    ] + generated_object_files,
     58    include_dirs = include_dirs,
     59    library_dirs = library_dirs,
     60    extra_link_args = extra_link_args,
     61    define_macros = define_macros,
     62    libraries=['aubio'])
    5963
    6064classifiers = [
    61         'Development Status :: 4 - Beta',
    62         'Environment :: Console',
    63         'Intended Audience :: Science/Research',
    64         'Topic :: Software Development :: Libraries',
    65         'Topic :: Multimedia :: Sound/Audio :: Analysis',
    66         'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
    67         'Operating System :: POSIX',
    68         'Operating System :: MacOS :: MacOS X',
    69         'Operating System :: Microsoft :: Windows',
    70         'Programming Language :: C',
    71         'Programming Language :: Python',
    72         'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
    73         ]
     65    'Development Status :: 4 - Beta',
     66    'Environment :: Console',
     67    'Intended Audience :: Science/Research',
     68    'Topic :: Software Development :: Libraries',
     69    'Topic :: Multimedia :: Sound/Audio :: Analysis',
     70    'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
     71    'Operating System :: POSIX',
     72    'Operating System :: MacOS :: MacOS X',
     73    'Operating System :: Microsoft :: Windows',
     74    'Programming Language :: C',
     75    'Programming Language :: Python',
     76    'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
     77    ]
    7478
    7579distrib = setup(name='aubio',
    76         version = __version__,
    77         packages = ['aubio'],
    78         ext_modules = [aubio_extension],
    79         description = 'interface to the aubio library',
    80         long_description = 'interface to the aubio library',
    81         license = 'GNU/GPL version 3',
    82         author = 'Paul Brossier',
    83         author_email = 'piem@aubio.org',
    84         maintainer = 'Paul Brossier',
    85         maintainer_email = 'piem@aubio.org',
    86         url = 'http://aubio.org/',
    87         platforms = 'any',
    88         classifiers = classifiers,
    89         )
    90 
     80    version = __version__,
     81    packages = ['aubio'],
     82    ext_modules = [aubio_extension],
     83    description = 'interface to the aubio library',
     84    long_description = 'interface to the aubio library',
     85    license = 'GNU/GPL version 3',
     86    author = 'Paul Brossier',
     87    author_email = 'piem@aubio.org',
     88    maintainer = 'Paul Brossier',
     89    maintainer_email = 'piem@aubio.org',
     90    url = 'http://aubio.org/',
     91    platforms = 'any',
     92    classifiers = classifiers,
     93    )
Note: See TracChangeset for help on using the changeset viewer.