forked from maartendamen/py-openzwave
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
28 lines (26 loc) · 1.18 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
from os import name as os_name
from distutils.core import setup
from Cython.Distutils import extension
from Cython.Distutils import build_ext
if os_name == 'nt':
ext_modules = [extension.Extension("openzwave", ["openzwave.pyx"],
libraries=['setupapi', 'stdc++'],
language="c++",
extra_objects=['openzwave/cpp/lib/windows-mingw32/openzwave.a'],
include_dirs=['openzwave/cpp/src', 'openzwave/cpp/src/value_classes', 'openzwave/cpp/src/platform']
)]
else:
ext_modules = [extension.Extension("openzwave", ["openzwave.pyx"],
libraries=['udev', 'stdc++'],
language="c++",
extra_objects=['openzwave/cpp/lib/linux/openzwave.a'],
include_dirs=['openzwave/cpp/src', 'openzwave/cpp/src/value_classes', 'openzwave/cpp/src/platform']
)]
setup(
name = 'py-openzwave',
author='Maarten Damen',
author_email='[email protected]',
url='http://projects.maartendamen.com/projects/pyopenzwave/',
cmdclass = {'build_ext': build_ext},
ext_modules = ext_modules
)