-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
51 lines (46 loc) · 1.64 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
from distutils.core import setup, Extension
import os
EMS_SERIO_DIR = 'ems_serio'
ems_serio = Extension(
"ems_bus.ems_serio",
[
os.path.join(EMS_SERIO_DIR, "crc.c"),
os.path.join(EMS_SERIO_DIR, "ems_serio.c"),
os.path.join(EMS_SERIO_DIR, "python_module.c"),
os.path.join(EMS_SERIO_DIR, "queue.c"),
os.path.join(EMS_SERIO_DIR, "rx.c"),
os.path.join(EMS_SERIO_DIR, "serial.c"),
os.path.join(EMS_SERIO_DIR, "tx.c")
],
libraries=['rt'],
define_macros=[('PYTHON_MODULE', '1')]
)
setup(
name='ems_bus',
version='1.0.0',
description='A driver for the Buderus EMS protocol',
url='',
author='Alexander Simon',
author_email='Alexander Simon <[email protected]>',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
'Topic :: Terminals :: Serial',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='ems buderus',
packages=['ems_bus'],
ext_modules=[ems_serio],
python_requires='>=3.6',
# project_urls={ # Optional
# 'Bug Reports': 'https://github.com/pypa/sampleproject/issues',
# 'Funding': 'https://donate.pypi.org',
# 'Say Thanks!': 'http://saythanks.io/to/example',
# 'Source': 'https://github.com/pypa/sampleproject/',
# },
install_requires=['posix_ipc'], # Optional
)