Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5e938175ab
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (26 sloc) 1.205 kb
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='m.damen@gmail.com',
url='http://projects.maartendamen.com/projects/pyopenzwave/',
cmdclass = {'build_ext': build_ext},
ext_modules = ext_modules
)
Jump to Line
Something went wrong with that request. Please try again.