forked from enthought/chaco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (59 loc) · 2.17 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
64
65
66
# Copyright (c) 2008-2011 by Enthought, Inc.
# All rights reserved.
from os.path import join
from numpy import get_include
from setuptools import setup, Extension, find_packages
info = {}
execfile(join('chaco', '__init__.py'), info)
# Register Python extensions
contour = Extension(
'chaco.contour.contour',
sources=['chaco/contour/cntr.c'],
include_dirs=[get_include()],
define_macros=[('NUMPY', None)]
)
# Commenting this out for now, until we get the module fully tested and working
#speedups = Extension(
# 'chaco._speedups',
# sources = ['chaco/_speedups.cpp'],
# include_dirs = [get_include()],
# define_macros=[('NUMPY', None)]
# )
setup(
name = 'chaco',
version = info['__version__'],
author = 'Peter Wang, et. al.',
author_email = '[email protected]',
maintainer = 'ETS Developers',
maintainer_email = '[email protected]',
url = 'http://code.enthought.com/projects/chaco',
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],
package_data={'chaco': ['tools/toolbars/images/*.png',
'layers/data/*.svg']},
description = 'interactive 2-dimensional plotting',
long_description = open('README.rst').read(),
download_url = ('http://www.enthought.com/repo/ets/chaco-%s.tar.gz' %
info['__version__']),
ext_modules = [contour],
include_package_data = True,
install_requires = info['__requires__'],
license = 'BSD',
packages = find_packages(),
platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
zip_safe = False,
)