History

setup.py: improve, update MANIFEST.in

Paul Brossier committed 13 years ago

Commit 4d3b5731 parent 41399bd2 files · +51 −47Browse files

Showing the changes to python/setup.py (1 of 2 files). Show all

Unified · Split

python/setup.py+50−47
@@ -1,6 +1,7 @@
11 #! /usr/bin/python
22
33 from distutils.core import setup, Extension
4+
45 import sys
56 import os.path
67 import numpy
@@ -11,13 +12,18 @@ __version__ = '.'.join \ · 4 unmodified lines
1112 ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \
1213 + AUBIO_VERSION_STATUS
1314
15+
1416 include_dirs = []
1517 library_dirs = []
1618 define_macros = []
19+extra_link_args = []
1720
1821 include_dirs += ['ext']
1922 include_dirs += [ numpy.get_include() ]
2023
24+if sys.platform.startswith('darwin'):
25+ extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
26+
2127 output_path = 'gen'
2228 generated_object_files = []
2329
@@ -37,54 +43,51 @@ if os.path.isfile('../src/aubio.h'): · 13 unmodified lines
3743 library_dirs += ['../build/src']
3844
3945 aubio_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
6064 classifiers = [
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
7579 distrib = 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+ )

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t