-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
46 lines (35 loc) · 1.19 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
#!/usr/bin/env python
# Always prefer setuptools over distutils
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=bin
-------------------------------------------------------------------------------
"""
version = str(open('PyPLC/VERSION').read().strip())
scripts = ['bin/PyPLC']
license = 'GPL-3.0'
package_dir = {'PyPLC': 'PyPLC',}
packages = package_dir.keys()
package_data = {'PyPLC': ['VERSION'],}
setup(name = 'pyplc',
author = 'Sergi Rubio',
author_email="[email protected]",
version = version,
license = license,
description = 'Tango device for Modbus equipment',
packages = packages,
package_dir= package_dir,
scripts = scripts,
include_package_data = True,
package_data = package_data,
# install_requires=['fandango>=14.6.0','PyTango'],
)