forked from openalea-incubator/adel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (48 loc) · 1.98 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
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
import os, sys
from setuptools import setup, find_packages
from openalea.deploy.metainfo import read_metainfo
pj = os.path.join
# Reads the metainfo file
metadata = read_metainfo('metainfo.ini', verbose=True)
for key,value in metadata.items():
exec("%s = '%s'" % (key, value))
# #retrieving packages
# pkg_root_dir = '.'
# pkgs = [ pkg for pkg in find_packages(pkg_root_dir) if namespace not in pkg]
# top_pkgs = [pkg for pkg in pkgs if len(pkg.split('.')) < 2]
# packages = [ namespace + "." + pkg for pkg in pkgs]
# package_dir = dict( [('',pkg_root_dir)] + [(namespace + "." + pkg, pkg_root_dir + "/" + pkg) for pkg in top_pkgs] )
# wralea_entry_points = ['%s = %s'%(pkg,namespace + '.' + pkg) for pkg in top_pkgs]
# Main setup
setup(
name=name,
version=version,
description=description,
long_description=long_description,
author=authors,
author_email=authors_email,
url=url,
license=license,
py_modules = [],
# pure python packages
packages= find_packages('src'),
# python packages directory
package_dir= {'': 'src'},
namespace_packages=['alinea'],
# Namespace packages creation by deploy
# Add package platform libraries if any
include_package_data=True,
package_data = {'' : ['*.RData', '*.R', '*.8', '*.h', '*.str','*.txt', '*.l', '*.map', '*.csv', '*.png'],},
share_dirs = {os.path.join(*('alinea', 'adel', 'data')): os.path.join(*('src', 'alinea','adel', 'data')),
os.path.join(*('alinea', 'adel', 'echap_leaf_data')): os.path.join(*('src', 'alinea','adel', 'echap_leaf_data'))},
# Add package platform libraries if any
zip_safe = False,
# Scripts
entry_points = { 'wralea': [ 'adel= alinea.adel',] },
# Dependencies (other are listed in doc to avoid setputools/pip/conda possible conflicts in automatic installs)
setup_requires = ['openalea.deploy'],
install_requires = [],
dependency_links = [],
)