This repository was 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
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·116 lines (97 loc) · 3.46 KB
/
setup.py
File metadata and controls
executable file
·116 lines (97 loc) · 3.46 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#! /usr/bin/env python3
import imp
import os
import sys
import subprocess
try:
from setuptools import find_packages, setup
except AttributeError:
from setuptools import find_packages, setup
NAME = 'ShadowOui-LR'
VERSION = '1.0.13'
ISRELEASED = False
DESCRIPTION = 'Shadow, Ray-tracing simulation software, Customized utilities'
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-LR'
DOWNLOAD_URL = 'http://github.com/lucarebuffi/ShadowOui-LR'
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.shadow.widgets.policapillary_optics":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.wavefront":["icons/*.png", "icons/*.jpg"],
"orangecontrib.shadow.widgets.miscellanea":["icons/*.png", "icons/*.jpg"],
}
SETUP_REQUIRES = (
'setuptools',
)
INSTALL_REQUIRES = (
'setuptools',
),
NAMESPACE_PACAKGES = ["orangecontrib", "orangecontrib.shadow", "orangecontrib.shadow.widgets"]
ENTRY_POINTS = {
'oasys.addons' : ("shadow = orangecontrib.shadow", ),
'oasys.widgets' : ("Shadow LR Polycapillary Optics = orangecontrib.shadow.widgets.policapillary_optics",
"Shadow LR Wavefront Tools = orangecontrib.shadow.widgets.wavefront",
"Shadow LR Miscellanea = orangecontrib.shadow.widgets.miscellanea",
),
}
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,
# 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,
)