Changeset c03d191 for setup.py


Ignore:
Timestamp:
Nov 17, 2018, 10:19:27 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/constantq
Children:
d1d4ad4
Parents:
088760e (diff), a114fe0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/constantq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r088760e rc03d191  
    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'},
     68    package_dir = {'aubio': 'python/lib/aubio'},
    6069    ext_modules = [aubio_extension],
    6170    description = 'a collection of tools for music analysis',
Note: See TracChangeset for help on using the changeset viewer.