forked from riptideio/misty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·78 lines (66 loc) · 2.02 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
"""
Copyright (c) 2018 by Riptide I/O
All rights reserved.
"""
import os
import sys
from setuptools import setup
from wheel.bdist_wheel import bdist_wheel
class BinaryDistWheel(bdist_wheel):
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False
# This creates a list which is empty but returns a length of 1.
# Should make the wheel a binary distribution and platlib compliant.
class EmptyListWithLength(list):
def __len__(self):
return 1
def setup_packages():
long_description = (
"The misty package helps build bacpypes Applications"
" that work on MS/TP Networks. The BIP (BACnet IP ) "
"Applications can be easily ported to use misty."
)
meta_data = dict(
name="misty",
version='0.0.13',
description='MSTP support for bacpypes',
scripts=[
'bin/CommandableMixin',
'bin/ReadProperty',
'bin/ReadPropertyMultiple',
'bin/ReadPropertyMultipleServer',
'bin/ReadWriteProperty',
'bin/WhoIsIAm',
'bin/bc',
'bin/bs',
'bin/cp_ini'
],
long_description=long_description,
license='GNU General Public License v2.0',
author='Riptide, Inc',
author_email='[email protected]',
maintainer='Riptide, Inc',
maintainer_email='[email protected]',
url='https://github.com/riptideio/misty',
zip_safe=False,
cmdclass={'bdist_wheel': BinaryDistWheel},
package_dir={
'misty': 'misty'
},
package_data={
'misty': [
'mstplib/libmstp_agent_darwin.so',
'mstplib/libmstp_agent_linux.so'
]
},
packages=['misty', 'misty.mstplib'],
ext_modules=EmptyListWithLength(),
install_requires=[
"bacpypes>=0.18.0",
"six>=1.15.0"
]
)
setup(**meta_data)
if __name__ == '__main__':
setup_packages()