forked from enthought/traits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (54 loc) · 2.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright (c) 2008-2011 by Enthought, Inc.
# All rights reserved.
from os.path import join
from setuptools import setup, Extension, find_packages
d = {}
execfile(join('traits', '__init__.py'), d)
ctraits = Extension(
'traits.ctraits',
sources = ['traits/ctraits.c'],
extra_compile_args = ['-DNDEBUG=1', '-O3'],
)
speedups = Extension(
'traits.protocols._speedups',
# fixme: Use the generated sources until Pyrex 0.9.6 and setuptools can
# play with each other. See #1364
sources = ['traits/protocols/_speedups.c'],
extra_compile_args = ['-DNDEBUG=1', '-O3'],
)
setup(
name = 'traits',
version = d['__version__'],
url = 'http://code.enthought.com/projects/traits',
author = 'David C. Morrill, et. al.',
author_email = '[email protected]',
classifiers = [c.strip() for c in """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Operating System :: OS Independent
Operating System :: POSIX
Operating System :: Unix
Programming Language :: C
Programming Language :: Python
Topic :: Scientific/Engineering
Topic :: Software Development
Topic :: Software Development :: Libraries
""".splitlines() if len(c.strip()) > 0],
description = 'explicitly typed attributes for Python',
long_description = open('README.rst').read(),
download_url = ('http://www.enthought.com/repo/ets/traits-%s.tar.gz' %
d['__version__']),
ext_modules = [ctraits, speedups],
include_package_data = True,
package_data = {'traits': ['protocols/_speedups.pyx']},
license = 'BSD',
maintainer = 'ETS Developers',
maintainer_email = '[email protected]',
packages = find_packages(),
platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
zip_safe = False,
)