forked from trainman419/python-cec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
21 lines (17 loc) · 759 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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.7',
description="Python bindings for libcec",
license='GPLv2',
data_files=['COPYING'],
ext_modules=[python_cec])