Changeset bc1ed63


Ignore:
Timestamp:
Nov 5, 2018, 2:08:00 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
568fc60, 98c712e
Parents:
dc74f69
Message:

[py] [style] improve setup.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rdc74f69 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
    57
    68# add ./python/lib to current path
    7 sys.path.append(os.path.join('python', 'lib'))
     9sys.path.append(os.path.join('python', 'lib'))  # noqa
    810from moresetuptools import build_ext, CleanGenerated
    911
     
    1921extra_link_args = []
    2022
    21 include_dirs += [ 'python/ext' ]
     23include_dirs += ['python/ext']
    2224try:
    2325    import numpy
    24     include_dirs += [ numpy.get_include() ]
     26    include_dirs += [numpy.get_include()]
    2527except ImportError:
    2628    pass
    2729
    2830if sys.platform.startswith('darwin'):
    29     extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
     31    extra_link_args += ['-framework', 'CoreFoundation',
     32            '-framework', 'AudioToolbox']
    3033
    3134sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c')))
     
    3841    define_macros = define_macros)
    3942
    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
    4448
    4549classifiers = [
     
    5559    'Programming Language :: C',
    5660    '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+)',
    5863    ]
    5964
     
    6166    version = __version__,
    6267    packages = ['aubio'],
    63     package_dir = {'aubio':'python/lib/aubio'},
     68    package_dir = {'aubio': 'python/lib/aubio'},
    6469    ext_modules = [aubio_extension],
    6570    description = 'a collection of tools for music analysis',
Note: See TracChangeset for help on using the changeset viewer.