-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
87 lines (67 loc) · 2 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
#!/usr/bin/env python
# Always prefer setuptools over distutils
import sys
from setuptools import setup, find_packages
DS = 'VacuumController'
author = 'srubio@cells.es',
description = '%s Tango Device Server'%DS
version = open(DS+'/VERSION').read().strip()
license = 'GPL-3.0'
__doc__ = """
Generic Device Server setup.py file copied from fandango/scripts/setup.ds.py
To install as system package:
python setup.py install
To build src package:
python setup.py sdist
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
-------------------------------------------------------------------------------
"""
## All the following defines are OPTIONAL
install_requires = ['fandango','PyTango',]
## For setup.py located in root folder or submodules
package_dir = {
# DS: DS, #'DS/tools': './tools',
}
packages = package_dir.keys() or find_packages()
## Additional files, remember to edit MANIFEST.in to include them in sdist
package_data = {'': [
DS+'/VERSION',
#'./tools/icon/*',
#'./tools/*ui',
]}
## Launcher scripts
scripts = [
'./bin/'+DS,
#'./scripts/VacuumController',
#'./scripts/VacuumGauge',
#'./scripts/IonPump',
]
## This option relays on DS.py having a main() method
entry_points = {
# 'console_scripts': [
# '%s = %s.%s:main'%(DS,DS,DS),
# ],
}
setup(
name = 'tangods-'+DS.lower(),
description = description,
author = author,
author_email = author,
url = 'https://git.cells.es/controls/'+DS,
license = license,
version = version,
install_requires = install_requires,
packages = packages,
package_dir = package_dir,
entry_points = entry_points,
scripts = scripts,
include_package_data = True,
package_data = package_data,
)