History

python/setup.py: parse version from VERSION, move _aubio to aubio/, add trove classifiers, indent

Paul Brossier committed 13 years ago

Commit 945e26d1 parent 35c97ab1 file · +42 −17Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/setup.py+42−17
@@ -5,13 +5,19 @@ from generator import generate_object_files · 4 unmodified lines
5import os.path5import os.path
6import numpy6import numpy
7 7
8# read from VERSION
9for l in open(os.path.join('..','VERSION')).readlines(): exec (l.strip())
10__version__ = '.'.join \
11 ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \
12 + AUBIO_VERSION_STATUS
13
8library_dirs = ['../build/src', '../src/.libs']14library_dirs = ['../build/src', '../src/.libs']
9include_dirs = ['../build/src', '../src', '.' ]15include_dirs = ['../build/src', '../src', '.' ]
10library_dirs = filter (lambda x: os.path.isdir(x), library_dirs)16library_dirs = filter (lambda x: os.path.isdir(x), library_dirs)
11include_dirs = filter (lambda x: os.path.isdir(x), include_dirs)17include_dirs = filter (lambda x: os.path.isdir(x), include_dirs)
12 18
13aubio_extension = Extension("_aubio",19aubio_extension = Extension("aubio._aubio",
14 ["aubiomodule.c",20 ["aubiomodule.c",
15 "aubioproxy.c",21 "aubioproxy.c",
16 "py-cvec.c",22 "py-cvec.c",
17 # example without macro23 # example without macro
@@ -22,20 +28,39 @@ aubio_extension = Extension("_aubio", · 4 unmodified lines
22 "py-phasevoc.c",28 "py-phasevoc.c",
23 # generated files29 # generated files
24 ] + generate_object_files(),30 ] + generate_object_files(),
25 include_dirs = include_dirs + [ numpy.get_include() ],31 include_dirs = include_dirs + [ numpy.get_include() ],
26 library_dirs = library_dirs,32 library_dirs = library_dirs,
27 libraries=['aubio'])33 extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox'],
34 libraries=['aubio'])
35
36classifiers = [
37 'Development Status :: 4 - Beta',
38 'Environment :: Console',
39 'Intended Audience :: Science/Research',
40 'Topic :: Software Development :: Libraries',
41 'Topic :: Multimedia :: Sound/Audio :: Analysis',
42 'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
43 'Operating System :: POSIX',
44 'Operating System :: MacOS :: MacOS X',
45 'Operating System :: Microsoft :: Windows',
46 'Programming Language :: C',
47 'Programming Language :: Python',
48 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
49 ]
28 50
29setup(name='aubio',51distrib = setup(name='aubio',
30 version = '0.4.0alpha',52 version = __version__,
31 packages = ['aubio'],53 packages = ['aubio'],
32 description = 'interface to the aubio library',54 ext_modules = [aubio_extension],
33 long_description = 'interface to the aubio library',55 description = 'interface to the aubio library',
34 license = 'GNU/GPL version 3',56 long_description = 'interface to the aubio library',
35 author = 'Paul Brossier',57 license = 'GNU/GPL version 3',
36 author_email = 'piem@aubio.org',58 author = 'Paul Brossier',
37 maintainer = 'Paul Brossier',59 author_email = 'piem@aubio.org',
38 maintainer_email = 'piem@aubio.org',60 maintainer = 'Paul Brossier',
39 url = 'http://aubio.org/',61 maintainer_email = 'piem@aubio.org',
40 ext_modules = [aubio_extension])62 url = 'http://aubio.org/',
63 platforms = 'any',
64 classifiers = classifiers,
65 )
41 66

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