This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·121 lines (105 loc) · 4.55 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
120
121
#! /usr/bin/env python3
import imp
import os
import sys
import subprocess
NAME = 'ShadowOui-Optics'
VERSION = '1.0.0'
ISRELEASED = False
DESCRIPTION = 'ShadowOui + Optics'
README_FILE = os.path.join(os.path.dirname(__file__), 'README.txt')
LONG_DESCRIPTION = open(README_FILE).read()
AUTHOR = 'Luca Rebuffi'
AUTHOR_EMAIL = 'luca.rebuffi@elettra.eu'
URL = 'http://github.com/lucarebuffi/ShadowOui-Optics'
DOWNLOAD_URL = 'http://github.com/lucarebuffi/ShadowOui-Optics'
LICENSE = 'GPLv3'
KEYWORDS = (
'ray-tracing',
'simulator',
'oasys',
)
CLASSIFIERS = (
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: Qt',
'Environment :: Console',
'Environment :: Plugins',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Intended Audience :: Science/Research',
)
INSTALL_REQUIRES = (
'setuptools',
)
if len({'develop', 'release', 'bdist_egg', 'bdist_rpm', 'bdist_wininst',
'install_egg_info', 'build_sphinx', 'egg_info', 'easy_install',
'upload', 'test'}.intersection(sys.argv)) > 0:
import setuptools
extra_setuptools_args = dict(
zip_safe=False, # the package can run out of an .egg file
include_package_data=True,
install_requires=INSTALL_REQUIRES
)
else:
extra_setuptools_args = dict()
from setuptools import find_packages, setup
PACKAGES = find_packages(
exclude = ('*.tests', '*.tests.*', 'tests.*', 'tests'),
)
PACKAGE_DATA = {"orangecontrib.optics.widgets.magnetic_structures":["icons/*.png", "icons/*.jpg"],
"orangecontrib.optics.widgets.optical_elements":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow_optics.widgets.sources":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow_optics.widgets.optical_elements":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow_optics.widgets.plots":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow_optics.widgets.driver":["icons/*.png", "icons/*.jpg"],
"orangecontrib.srw_optics.widgets.magnetic_structures":["icons/*.png", "icons/*.jpg"],
"orangecontrib.srw_optics.widgets.optical_elements":["icons/*.png", "icons/*.jpg"],
"orangecontrib.srw_optics.widgets.driver":["icons/*.png", "icons/*.jpg"],
}
SETUP_REQUIRES = (
'setuptools',
)
NAMESPACE_PACAKGES = ["orangecontrib",
"orangecontrib.shadow_optics",
"orangecontrib.shadow_optics.widgets",
"orangecontrib.optics",
"orangecontrib.optics.widgets",
"orangecontrib.srw_optics",
"orangecontrib.srw_optics.widgets",]
ENTRY_POINTS = {
'oasys.addons' : ("shadow = orangecontrib.optics", ),
'oasys.widgets' : ("Optics: Magnetic Structures = orangecontrib.optics.widgets.magnetic_structures",
"Optics: Optical Elements = orangecontrib.optics.widgets.optical_elements",
"Shadow + Optics: Sources = orangecontrib.shadow_optics.widgets.sources",
"Shadow + Optics: O.E. = orangecontrib.shadow_optics.widgets.optical_elements",
"Shadow + Optics: Plots = orangecontrib.shadow_optics.widgets.plots",
"Shadow + Optics: Driver = orangecontrib.shadow_optics.widgets.driver",
"SRW + Optics: Magnetic Structures = orangecontrib.srw_optics.widgets.magnetic_structures",
"SRW + Optics: Optical Elements = orangecontrib.srw_optics.widgets.optical_elements",
"SRW + Optics: Driver = orangecontrib.srw_optics.widgets.driver",
),
}
if __name__ == '__main__':
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,
setup_requires = SETUP_REQUIRES,
install_requires = INSTALL_REQUIRES,
entry_points = ENTRY_POINTS,
namespace_packages=NAMESPACE_PACAKGES,
include_package_data = True,
zip_safe = False,
)