def add_system_aubio(ext): # use pkg-config to find aubio's location aubio_version = get_aubio_version() add_packages(['aubio = ' + aubio_version], ext) if 'aubio' not in ext.libraries: print("Info: aubio " + aubio_version + " was not found by pkg-config") else: print("Info: using system aubio " + aubio_version + " found in " + ' '.join(ext.library_dirs))
#source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'aubio' copyright = u'2016, Paul Brossier' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = get_aubio_version()[:3] # The full version, including alpha/beta/rc tags. release = get_aubio_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.
#! /usr/bin/env python import sys, os.path, glob from setuptools import setup, Extension from python.lib.moresetuptools import build_ext, CleanGenerated # function to generate gen/*.{c,h} from this_version import get_aubio_version, get_aubio_pyversion __version__ = get_aubio_pyversion() __aubio_version__ = get_aubio_version() include_dirs = [] library_dirs = [] define_macros = [('AUBIO_VERSION', '%s' % __aubio_version__)] extra_link_args = [] include_dirs += [ 'python/ext' ] try: import numpy include_dirs += [ numpy.get_include() ] except ImportError: pass if sys.platform.startswith('darwin'): extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox'] sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c'))) aubio_extension = Extension("aubio._aubio", sources, include_dirs = include_dirs,
#source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'aubio' copyright = u'2018, Paul Brossier' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = get_aubio_version()[:3] # The full version, including alpha/beta/rc tags. release = get_aubio_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.
#! /usr/bin/env python import sys import os.path import glob from setuptools import setup, Extension # add ./python/lib to current path sys.path.append(os.path.join('python', 'lib')) # noqa from moresetuptools import build_ext, CleanGenerated # function to generate gen/*.{c,h} from this_version import get_aubio_version, get_aubio_pyversion __version__ = get_aubio_pyversion() __aubio_version__ = get_aubio_version() include_dirs = [] library_dirs = [] define_macros = [('AUBIO_VERSION', '%s' % __aubio_version__)] extra_link_args = [] include_dirs += ['python/ext'] try: import numpy include_dirs += [numpy.get_include()] except ImportError: pass if sys.platform.startswith('darwin'): extra_link_args += [