Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 769492d

Browse files
committed
Fix linux build
1 parent 736142a commit 769492d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.14 ({build})
1+
version: 0.1.15 ({build})
22

33
environment:
44
PASSWORD:

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,21 @@ def run(self):
232232
)
233233
)
234234
elif sys.platform.startswith('darwin'):
235+
sb_include_dirs.append('/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers')
235236
ext_modules.append(
236237
Extension(
237238
name='sphinxbase._ad_openal',
238239
sources=['swig/sphinxbase/ad_openal.i', 'deps/sphinxbase/src/libsphinxad/ad_openal.c'],
239240
swig_opts=sb_swig_opts,
240-
include_dirs=sb_include_dirs.append('/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers'),
241+
include_dirs=sb_include_dirs,
241242
extra_objects=['/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL'],
242243
define_macros=define_macros,
243244
extra_compile_args=extra_compile_args,
244245
extra_link_args=extra_link_args
245246
)
246247
)
247248
elif sys.platform.startswith('linux'):
248-
ext_modules.append(
249+
ext_modules.extend([
249250
Extension(
250251
name='sphinxbase._ad_pulse',
251252
sources=['swig/sphinxbase/ad_pulse.i', 'deps/sphinxbase/src/libsphinxad/ad_pulse.c'],
@@ -266,11 +267,11 @@ def run(self):
266267
extra_compile_args=extra_compile_args,
267268
extra_link_args=extra_link_args
268269
)
269-
)
270+
])
270271

271272
setup(
272273
name='pocketsphinx',
273-
version='0.1.14',
274+
version='0.1.15',
274275
description='Python interface to CMU Sphinxbase and Pocketsphinx libraries',
275276
long_description=open('README.md').read(),
276277
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)