-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
56 lines (42 loc) · 1.51 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
# {# pkglts, pysetup.kwds
# format setup arguments
from setuptools import setup, find_namespace_packages
short_descr = "Multiscale Tree Graph datastructure and interfaces"
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
# find version number in src/openalea/mtg/version.py
_version = {}
with open("src/openalea/mtg/version.py") as fp:
exec(fp.read(), _version)
version = _version["__version__"]
packages=find_namespace_packages(where='src', include=['openalea.*'])
setup_kwds = dict(
name='openalea.mtg',
version=version,
description=short_descr,
long_description=readme + '\n\n' + history,
author="Christophe Pradal",
author_email="christophe pradal __at__ cirad fr",
url='http://github.com/openalea/mtg',
license='CeCILL-C',
keywords=['OpenAlea', 'MTG', 'Plant Architecture', 'Tree Graph'],
zip_safe=False,
packages=packages,
package_dir={'': 'src'},
entry_points={},
)
# #}
# change setup_kwds below before the next pkglts tag
setup_kwds['share_dirs'] = {'share': 'share'}
setup_kwds['entry_points']["wralea"] = ["mtg = openalea.mtg_wralea"]
setup_kwds['pylint_packages'] = ['src/mtg', 'src/mtg/interface']
setup_kwds['setup_requires'] = ['openalea.deploy']
if ('CONDA_PREFIX' not in os.environ) and ('PREFIX' not in os.environ):
setup_kwds['namespace_packages']=['openalea'] # Never used in a conda env...
# do not change things below
# {# pkglts, pysetup.call
setup(**setup_kwds)
# #}