Skip to content

Commit 0302500

Browse files
committed
Added c++11 for linux build & mark python 3.6 and 3.7 as supported
1 parent cbc7feb commit 0302500

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@
3131
'checks.cc')))
3232

3333
define_macros = []
34+
extra_compile_args = []
3435

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

4042
module = Extension('_webrtcvad',
4143
define_macros=define_macros,
44+
extra_compile_args=extra_compile_args,
4245
sources=c_sources,
4346
include_dirs=['cbits'])
4447

@@ -83,6 +86,8 @@
8386
'Programming Language :: Python :: 3.3',
8487
'Programming Language :: Python :: 3.4',
8588
'Programming Language :: Python :: 3.5',
89+
'Programming Language :: Python :: 3.6',
90+
'Programming Language :: Python :: 3.7',
8691
],
8792
keywords='speechrecognition asr voiceactivitydetection vad webrtc',
8893
ext_modules=[module],

0 commit comments

Comments
 (0)