-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
65 lines (50 loc) · 1.76 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
# -*- coding: utf-8 -*-
__revision__ = "$Id: $"
import sys
import os
from os.path import join as pj
from setuptools import setup, find_namespace_packages
versioninfo = {}
p3ddir = pj(os.path.dirname(__file__),'src', 'openalea', 'plantscan3d')
with open(pj(p3ddir,"__version__.py")) as fp:
exec(fp.read(), versioninfo)
globals().update(versioninfo)
# Packages list, namespace and root directory of packages
pkg_root_dir = 'src'
pkgs = [ pkg for pkg in find_namespace_packages(pkg_root_dir)]
setup(
name=name,
version=version,
description=description,
long_description=long_description,
author=authors,
author_email=authors_email,
url=url,
license=license,
keywords = '',
# package installation
packages= pkgs,
package_dir = {
'' : 'src'
},
# Namespace packages creation by deploy
#namespace_packages = ['openalea'],
#create_namespaces = False,
zip_safe= False,
# 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 = {'' : ['*.ui', '*.rc', '*.qrc','*.conf','*.png'],},
# postinstall_scripts = ['',],
# Declare scripts and wralea as entry_points (extensions) of your package
entry_points = {
'wralea' : ['plantscan3d = openalea.plantscan3d_wralea' ],
#'console_scripts': [
# 'fake_script = openalea.fakepackage.amodule:console_script', ],
'gui_scripts': [
'plantscan3d = openalea.plantscan3d.main_window:main',],
# 'wralea': wralea_entry_points
},
)