-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
53 lines (41 loc) · 1.57 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# format setup arguments
from setuptools import setup, find_namespace_packages
from io import open
short_descr = "OpenAlea.Core is able to discover and manage packages and logical components, build and evaluate dataflows and generate final applications"
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
# find version number in src/openalea/core/version.py
_version = {}
with open("src/openalea/core/version.py") as fp:
exec(fp.read(), _version)
version = _version["__version__"]
# find packages
pkgs = find_namespace_packages('src', include=['openalea.*'])
setup_kwds = dict(
name='openalea.core',
version=version,
description=short_descr,
long_description=readme + '\n\n' + history,
author="Christophe Pradal",
author_email="christophe dot pradal at cirad dot fr",
url='https://github.com/openalea/core',
license='CeCILL-C',
zip_safe=False,
packages=pkgs,
#namespace_packages=['openalea'],
package_dir={'': 'src'},
package_data = {'openalea.core' : ['*.txt'],},
include_package_data = True,
entry_points={},
keywords='openalea',
)
setup_kwds['setup_requires'] = ['openalea.deploy']
setup_kwds['share_dirs'] = {'share': 'share'}
setup_kwds['entry_points']["wralea"] = ["openalea.flow control = openalea.core.system", ]
setup_kwds['entry_points']["console_scripts"] = ["alea = openalea.core.alea:main"]
setup_kwds['entry_points']['openalea.core'] = [
'openalea.core/openalea = openalea.core.plugin.builtin',
]
setup(**setup_kwds)