-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
66 lines (50 loc) · 1.77 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
# -*- coding: utf-8 -*-
__revision__ = "$Id$"
from setuptools import setup, find_packages
import os
import sys
from os.path import join as pj
from openalea.deploy.metainfo import read_metainfo
metadata = read_metainfo('metainfo.ini', verbose=True)
for key, value in metadata.iteritems():
exec("%s = '%s'" % (key, value))
# compile cython code
cwd = os.getcwd()
os.chdir('src/openalea/stocatree')
os.system('python build_cython.py')
os.chdir(cwd)
if __name__ == '__main__':
setup(name=name,
version=version,
author=authors,
author_email=authors_email,
description=description,
url=url,
license=license,
namespace_packages=['openalea'],
create_namespaces=True,
# Packages
packages=['openalea',
'openalea.stocatree',
'openalea.stocatree.tools'],
package_dir={
'': 'src',
'openalea': 'src/openalea',
'openalea.stocatree': 'src/openalea/stocatree'},
package_data={'': ['*.lpy', '*.fset',
'*.s', '*.txt', '*pyd', '*.so'], },
include_package_data=True,
share_dirs={'share': 'share'},
# Add package platform libraries if any
zip_safe=False,
# Dependencies
#install_requires = ['vplants.plantgl', 'cython', 'lockfile'],
dependency_links=['http://openalea.gforge.inria.fr/pi'],
# cmdclass={'build_ext':build_ext},
#ext_modules = ext_modules,
entry_points={
"wralea": ["openalea.stocatree = stocatree_wralea",
"openalea.stocatree.configuration = stocatree_configuration_wralea",
]
},
)