-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
79 lines (68 loc) · 2.43 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
# -*- python -*-
#
# Copyright INRIA - CIRAD - INRA
#
# File author(s):
#
# File contributor(s):
#
# Distributed under the Cecill-C License.
# See accompanying file LICENSE.txt or copy at
# http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
#
# OpenAlea WebSite : http://openalea.gforge.inria.fr
#
# ==============================================================================
"""
"""
# ==============================================================================
import numpy
from Cython.Build import cythonize
from setuptools import setup, find_namespace_packages, Extension
# ==============================================================================
namespace = "openalea"
pkg_root_dir = 'src'
packages = find_namespace_packages(where='src', include=['openalea.*'])
extentions = [
Extension('openalea.phenomenal.segmentation._c_skeleton',
sources=['src/openalea/phenomenal/segmentation/src/skeleton.pyx',
'src/openalea/phenomenal/segmentation/src/skel.cpp'],
include_dirs=[numpy.get_include()],
language="c++"),
Extension('openalea.phenomenal.multi_view_reconstruction._c_mvr',
sources=['src/openalea/phenomenal/multi_view_reconstruction/src/c_mvr.pyx',
'src/openalea/phenomenal/multi_view_reconstruction/src/integral_image.cpp'],
include_dirs=[numpy.get_include()],
language="c++")
]
version = {}
with open("src/openalea/phenomenal/version.py") as fp:
exec(fp.read(), version)
setup(
name="openalea.phenomenal",
version=version["__version__"],
description="",
long_description="",
author="* Simon Artzet\n"
"* Christian Fournier\n"
"* Mielewczik Michael\n"
"* Brichet Nicolas\n"
"* Chopard Jerome\n"
"* Christophe Pradal\n",
author_email="[email protected]",
maintainer="Simon Artzet",
maintainer_email="[email protected]",
url="https://github.com/openalea/phenomenal",
license="Cecill-C",
keywords='',
# package installation
packages=packages,
package_dir={'': 'src'},
zip_safe=False,
ext_modules=cythonize(extentions, language_level = "3"),
entry_points={
"wralea": ["openalea.phenomenal = openalea.phenomenal_wralea", ],
},
# See MANIFEST.in
include_package_data=True,
)