-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
35 lines (31 loc) · 1.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
import setuptools
import sys
from distutils.core import Extension
if sys.version_info < (3,0):
sys.exit('Sorry, Python < 3.0 is not supported')
with open("README.md", "r") as fh:
long_description = fh.read()
version = None
with open('version.txt') as f: version = f.read().strip()
setuptools.setup(
name="homegear",
version=version,
description = 'Extension to connect to a local Homegear service.',
long_description=long_description,
long_description_content_type="text/markdown",
author="Homegear GmbH",
author_email="[email protected]",
url="https://github.com/Homegear/python3-homegear",
keywords = ['homegear', 'smart home'],
ext_modules=[
Extension("homegear", ["homegear.cpp", "IpcClient.cpp", "PythonVariableConverter.cpp"],
extra_compile_args=['-std=c++17'],
extra_link_args=['-lhomegear-ipc', '-latomic'])
],
include_package_data=True,
classifiers=(
"Programming Language :: C++",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: POSIX"
)
)