forked from rwl/enaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (53 loc) · 1.72 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
#------------------------------------------------------------------------------
# Copyright (c) 2012, Enthought, Inc.
# All rights reserved.
#------------------------------------------------------------------------------
import os
from setuptools import setup, find_packages, Extension, Feature
enaml_extensions = Feature(
description='optional optimized c++ extensions',
standard=bool(os.environ.get('BUILD_ENAML_EXTENSIONS')),
ext_modules=[
Extension(
'enaml.extensions.weakmethod',
['enaml/extensions/weakmethod.cpp'],
language='c++',
),
Extension(
'enaml.extensions.callableref',
['enaml/extensions/callableref.cpp'],
language='c++',
),
Extension(
'enaml.extensions.signaling',
['enaml/extensions/signaling.cpp'],
language='c++',
),
Extension(
'enaml.extensions.funchelper',
['enaml/extensions/funchelper.cpp'],
language='c++',
)
],
)
setup(
name='enaml',
version='0.6.6',
author='Enthought, Inc',
author_email='info@enthought.com',
url='https://github.com/enthought/enaml',
description='Declarative language for building dynamic user interfaces '
'in Python',
long_description=open('README.rst').read(),
requires=['traits', 'PySide', 'ply', 'wx', 'casuarius'],
install_requires=['distribute'],
packages=find_packages(),
package_data={'enaml.stdlib': ['*.enaml']},
entry_points = dict(
console_scripts=[
'enaml-run = enaml.runner:main',
],
),
test_suite='enaml.test_collector',
features={'enaml-extensions': enaml_extensions}
)