forked from trainman419/python-cec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (15 loc) · 706 Bytes
/
setup.py
File metadata and controls
19 lines (15 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
from distutils.core import setup, Extension
# Remove the "-Wstrict-prototypes" compiler option, which isn't valid for C++.
import distutils.sysconfig
cfg_vars = distutils.sysconfig.get_config_vars()
if "CFLAGS" in cfg_vars:
cfg_vars["CFLAGS"] = cfg_vars["CFLAGS"].replace("-Wstrict-prototypes", "")
if "OPT" in cfg_vars:
cfg_vars["OPT"] = cfg_vars["OPT"].replace("-Wstrict-prototypes", "")
python_cec = Extension('cec', sources = [ 'cec.cpp', 'device.cpp' ],
include_dirs=['include'],
libraries = [ 'cec' ])
setup(name='cec', version='0.2.5',
description="Python bindings for libcec",
ext_modules=[python_cec])