- Timestamp:
- Nov 17, 2018, 10:19:27 PM (5 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r088760e rc03d191 1 1 #! /usr/bin/env python 2 2 3 import sys, os.path, glob 3 import sys 4 import os.path 5 import glob 4 6 from setuptools import setup, Extension 5 from python.lib.moresetuptools import build_ext, CleanGenerated 7 8 # add ./python/lib to current path 9 sys.path.append(os.path.join('python', 'lib')) # noqa 10 from moresetuptools import build_ext, CleanGenerated 11 6 12 # function to generate gen/*.{c,h} 7 13 from this_version import get_aubio_version, get_aubio_pyversion … … 15 21 extra_link_args = [] 16 22 17 include_dirs += [ 'python/ext']23 include_dirs += ['python/ext'] 18 24 try: 19 25 import numpy 20 include_dirs += [ numpy.get_include()]26 include_dirs += [numpy.get_include()] 21 27 except ImportError: 22 28 pass 23 29 24 30 if sys.platform.startswith('darwin'): 25 extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox'] 31 extra_link_args += ['-framework', 'CoreFoundation', 32 '-framework', 'AudioToolbox'] 26 33 27 34 sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c'))) … … 34 41 define_macros = define_macros) 35 42 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 40 48 41 49 classifiers = [ … … 51 59 'Programming Language :: C', 52 60 '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+)', 54 63 ] 55 64 … … 57 66 version = __version__, 58 67 packages = ['aubio'], 59 package_dir = {'aubio': 'python/lib/aubio'},68 package_dir = {'aubio': 'python/lib/aubio'}, 60 69 ext_modules = [aubio_extension], 61 70 description = 'a collection of tools for music analysis',
Note: See TracChangeset
for help on using the changeset viewer.