-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
113 lines (85 loc) · 3.11 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, find_namespace_packages
_version = {}
with open("src/openalea/oalab/version.py") as fp:
exec(fp.read(), _version)
version = _version["__version__"]
packages = find_namespace_packages(where='src', include=['openalea.*'])
package_dir={'': 'src'}
# Define global variables
name = 'openalea.oalab'
description = "OALab package for OpenAlea.."
long_description= "The OpenAlea.OALab package is a GUI for OpenAlea wich permit to use Visualea and LPy and others in the same application."
authors= "OpenAlea consortium"
authors_email = "christophe.pradal at cirad.fr"
url = "https://github.com/openalea/oalab"
license = "CeCILL"
# List of top level wralea packages (directories with __wralea__.py)
# wralea_entry_points = ['%s = %s'%(pkg,namespace + '.' + pkg) for pkg in top_pkgs]
# dependencies to other eggs
setup_requires = ['openalea.deploy']
# TODO: remove pygments 1.6 constraints when https://github.com/ipython/ipython/issues/6877 is fixed
install_requires = []
# web sites where to find eggs
dependency_links = []
setup(
name=name,
version=version,
description=description,
long_description=long_description,
author=authors,
author_email=authors_email,
url=url,
license=license,
keywords='openalea',
# package installation
packages=packages,
package_dir=package_dir,
# Namespace packages creation by deploy
py_modules=['oalab_postinstall'],
#namespace_packages=['openalea'],
# create_namespaces = False,
zip_safe=False,
# Dependencies
setup_requires=setup_requires,
install_requires=install_requires,
#dependency_links=dependency_links,
# Eventually include data in your package
# (flowing is to include all versioned files other than .py)
include_package_data=True,
# (you can provide an exclusion dictionary named exclude_package_data to remove parasites).
# alternatively to global inclusion, list the file to include
package_data = {'openalea.oalab': ['*.ui'],},
postinstall_scripts=['oalab_postinstall'],
share_dirs={'share': 'share'},
# Declare src and wralea as entry_points (extensions) of your package
entry_points={
'gui_scripts': [
'oalab = openalea.oalab.main:main',
],
'oalab.applet': [
'oalab.applet/oalab = openalea.oalab.plugin.builtin.applet',
],
'oalab.plugin': [
'oalab/oalab.core = openalea.oalab.plugin.builtin.oalab',
'oalab/oalab.core.visualea = openalea.oalab.plugin.builtin.oalab.visualea_control:PluginVisualeaWidgetSelectors',
],
'oalab.lab': [
'oalab.lab/oalab = openalea.oalab.plugin.builtin.lab',
],
'openalea.core': [
'openalea.core/oalab = openalea.oalab.plugin.builtin.core',
],
'openalea.interface': [
'openalea.interface/oalab = openalea.oalab.plugin.builtin.interface',
],
'wralea': [
'oalab = openalea.oalab_wralea',
],
'plugin': [
'oalab = openalea.oalab_wralea',
]
},
)