-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (71 loc) · 2.68 KB
/
setup.py
File metadata and controls
97 lines (71 loc) · 2.68 KB
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
# -*- coding: utf-8 -*-
__revision__ = "$Id$"
import os, sys
from os.path import join as pj
from setuptools import setup, find_namespace_packages
#from openalea.deploy.binary_deps import binary_deps
# 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))
# Meta-information
name='OpenAlea.SequenceAnalysis'
version='2.0.0'
description='sequence analysis library'
long_description='Python version of sequence analysis (AML stat).'
authors='Y. Guedon, JB. Durand, P. Fernique, C. Pradal, T. Cokelaer'
authors_email='christophe.pradal@cirad.fr'
url='https://github.com/openalea/StructureAnalysis/'
license='CeCILL-C'
build_prefix = "build-scons"
# Scons build directory
scons_parameters=["build_prefix="+build_prefix]
# platform dependencies
install_requires = []
setup_requires = install_requires + ['openalea.deploy']
namespace = 'openalea'
packages = find_namespace_packages(where='src', include=['openalea.*'])
package_dir = {'': 'src'}
"""
if sys.platform.startswith('win'):
install_requires = [binary_deps('openalea.stattool')]
install_requires += [binary_deps("boost")]
setup_requires += [binary_deps("boost")]
"""
if __name__ == '__main__':
setup(name=name,
version=version,
author=authors,
author_email=authors_email,
description=description,
long_description=long_description,
url=url,
license=license,
# Define where to execute scons
scons_scripts=['SConstruct'],
# Scons parameters
scons_parameters=scons_parameters,
namespace_packages=['openalea'],
#create_namespaces=True,
# Packages
packages=packages,
package_dir=package_dir,
share_dirs = { 'share' : 'share' },
# Add package platform libraries if any
include_package_data=True,
package_data = {'' : ['*.pyd', '*.so', '*.dylib'],},
zip_safe = False,
# Specific options of openalea.deploy
lib_dirs = {'lib' : pj(build_prefix, 'lib'),},
inc_dirs = { 'include' : pj(build_prefix, 'include') },
entry_points = {
"wralea": ["openalea.stats = sequence_analysis_wralea",
"openalea.demo = sequence_analysis_wralea.demo.change_point",
]
},
# Dependencies
setup_requires = setup_requires,
install_requires = install_requires,
#dependency_links = ['http://openalea.gforge.inria.fr/pi'],
#pylint_packages = ['src/openalea/sequence_analysis']
)