Skip to content

Commit

Permalink
Added c++11 for linux build & mark python 3.6 and 3.7 as supported
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncake4132 committed Nov 24, 2018
1 parent cbc7feb commit 0302500
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@
'checks.cc')))

define_macros = []
extra_compile_args = []

if sys.platform.startswith('win'):
define_macros.extend([('_WIN32', None), ('WEBRTC_WIN', None)])
else:
define_macros.extend([('WEBRTC_POSIX', None), ])
extra_compile_args.extend(['-std=c++11'])

module = Extension('_webrtcvad',
define_macros=define_macros,
extra_compile_args=extra_compile_args,
sources=c_sources,
include_dirs=['cbits'])

Expand Down Expand Up @@ -83,6 +86,8 @@
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='speechrecognition asr voiceactivitydetection vad webrtc',
ext_modules=[module],
Expand Down

0 comments on commit 0302500

Please sign in to comment.