This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
102 lines (87 loc) · 2.81 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
#!/usr/bin/env python
# Always prefer setuptools over distutils
import os, imp, sys
from setuptools import setup, find_packages
__doc__ = """
To install as system package:
python setup.py install
To install as local package, just run:
mkdir /tmp/builds/
python setup.py install --root=/tmp/builds
/tmp/builds/usr/bin/$DS -? -v4
To tune some options:
RU=/opt/control
python setup.py egg_info --egg-base=tmp install --root=$RU/files --no-compile \
--install-lib=lib/python/site-packages --install-scripts=ds
-------------------------------------------------------------------------------
"""
if 'help' in str(sys.argv):
print(__doc__)
version = open('PyTangoArchiving/VERSION').read().strip()
scripts = []
license = 'GPL-3.0'
f = './PyTangoArchiving/scripts/'
scripts = [
f+'taurusfinder',
f+'ctarchiving',
f+'ctsnaps',
f+'archiving2csv',
f+'archiving2plot',
#f+'archiving_report.py',
f+'archiving_service',
f+'PyExtractor',
#f+'archiver_health_check.py',
#f+'cleanTdbFiles',
#f+'db_repair.py',
]
entry_points = {
'console_scripts': [
#'PyExtractor = PyTangoArchiving.servers.PyExtractor.PyExtractor',
],
}
# EXTRA FILES ARE ADDED IN MANIFEST.in, not here
#package_data = {
# 'PyTangoArchiving': [#'VERSION','README',
# './VERSION',
#'./CHANGES',
# './widget/ui/TaurusAttributeChooser.ui',
#'./widget/resources/*',
#'./widget/resources.qrc',
#'./widget/snaps/ui/*',
#'./widget/snaps/doc/snapimg/*png',
#'./widget/snaps/README',
# ],
#}
setup(
name="PyTangoArchiving",
version=str(version),
license=license,
packages=find_packages(),
description="Python bindings for Tango Control System Archiving",
long_description="This package allows to: \n"
"* Integrate Hdb and Snap archiving with other python/PyTango tools.\n"
"* Start/Stop Archiving devices in the appropiated order.\n"
"* Increase the capabilities of configuration and diagnostic.\n"
"* Import/Export .csv and .xml files between the archiving and the database.",
author="Sergi Rubio",
author_email="[email protected]",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: '\
'GNU Lesser General Public License v3 or later (LGPLv3+)',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries',
],
platforms=[ "Linux" ],
scripts=scripts,
entry_points=entry_points,
include_package_data=True,
#package_data=package_data,
install_requires=['fandango>=14.6.0','PyTango'],
zip_safe=False
)