-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·119 lines (103 loc) · 4.31 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
114
115
116
117
118
119
#! /usr/bin/env python3
import os
try:
from setuptools import find_packages, setup
except AttributeError:
from setuptools import find_packages, setup
NAME = 'OASYS1-ShadowOui'
VERSION = '1.5.231'
ISRELEASED = True
DESCRIPTION = 'Shadow, Ray-tracing simulation software'
README_FILE = os.path.join(os.path.dirname(__file__), 'README.txt')
LONG_DESCRIPTION = open(README_FILE).read()
AUTHOR = 'Luca Rebuffi, Manuel Sanchez del Rio and Bioinformatics Laboratory, FRI UL'
AUTHOR_EMAIL = '[email protected]'
URL = 'http://github.com/oasys-kit/ShadowOui'
DOWNLOAD_URL = 'http://github.com/oasys-kit/ShadowOui'
LICENSE = 'GPLv3'
KEYWORDS = (
'ray-tracing',
'simulator',
'oasys1',
)
CLASSIFIERS = (
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Environment :: Console',
'Environment :: Plugins',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
)
SETUP_REQUIRES = (
'setuptools',
)
INSTALL_REQUIRES = (
'shadow3>=23.9.19',
'oasys1>=1.2.145',
'syned-gui>=1.0.3',
'wofryshadow>=1.0.4',
'dabax',
'xoppylib>=1.0.21',
'shadow-hybrid-methods>=1.0.8',
)
PACKAGES = find_packages(exclude=('*.tests', '*.tests.*', 'tests.*', 'tests'))
PACKAGE_DATA = {
"orangecontrib.shadow.widgets.gui":["misc/*.*"],
"orangecontrib.shadow.widgets.experimental_elements":["icons/*.png", "icons/*.jpg", "misc/*.*", "data/*.*"],
"orangecontrib.shadow.widgets.optical_elements":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.special_elements":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.compound_optical_elements": ["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.loop_management":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.plots":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.preprocessor":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.sources":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.utility":["icons/*.png", "icons/*.jpg"],
}
NAMESPACE_PACAKGES = ["orangecontrib", "orangecontrib.shadow", "orangecontrib.shadow.widgets"]
ENTRY_POINTS = {
'oasys.addons' : ("shadow = orangecontrib.shadow", ),
'oasys.widgets' : (
"Shadow Experiments = orangecontrib.shadow.widgets.experimental_elements",
"Shadow Basic Loops = orangecontrib.shadow.widgets.loop_management",
"Shadow Scanning Loops = orangecontrib.shadow.widgets.scanning",
"Shadow Optical Elements = orangecontrib.shadow.widgets.optical_elements",
"Shadow Compound Optical Elements = orangecontrib.shadow.widgets.compound_optical_elements",
"Shadow Special Elements = orangecontrib.shadow.widgets.special_elements",
"Shadow PostProcessor = orangecontrib.shadow.widgets.plots",
"Shadow PreProcessor = orangecontrib.shadow.widgets.preprocessor",
"Shadow Light Sources = orangecontrib.shadow.widgets.sources",
"Shadow Utility = orangecontrib.shadow.widgets.utility",
),
'oasys.menus' : ("shadowmenu = orangecontrib.shadow.menu",)
}
if __name__ == '__main__':
is_beta = False
try:
import PyMca5, PyQt4
is_beta = True
except:
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
long_description = LONG_DESCRIPTION,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
download_url = DOWNLOAD_URL,
license = LICENSE,
keywords = KEYWORDS,
classifiers = CLASSIFIERS,
packages = PACKAGES,
package_data = PACKAGE_DATA,
# py_modules = PY_MODULES,
setup_requires = SETUP_REQUIRES,
install_requires = INSTALL_REQUIRES,
#extras_require = EXTRAS_REQUIRE,
#dependency_links = DEPENDENCY_LINKS,
entry_points = ENTRY_POINTS,
namespace_packages=NAMESPACE_PACAKGES,
include_package_data = True,
zip_safe = False,
)
if is_beta: raise NotImplementedError("This version of ShadowOui doesn't work with Oasys1 beta.\nPlease install OASYS1 final release: https://www.aps.anl.gov/Science/Scientific-Software/OASYS")