fix:change setup

pull/2165/head
lidongdong 3 years ago
parent 06a44f7460
commit d21c1f2b10

@ -89,11 +89,11 @@ FILES = [
or fn.endswith('unittest.cc')) or fn.endswith('unittest.cc'))
] ]
# yapf: enable # yapf: enable
# LIBS = ['stdc++'] LIBS = ['stdc++']
LIBS = ['-static-libstdc++']
if platform.system() != 'Darwin': if platform.system() != 'Darwin':
# LIBS.append('rt') LIBS.append('rt')
pass if platform.system() != 'Windows':
LIBS = ['-static-libstdc++']
ARGS = ['-O3', '-DNDEBUG', '-DKENLM_MAX_ORDER=6', '-std=c++11'] ARGS = ['-O3', '-DNDEBUG', '-DKENLM_MAX_ORDER=6', '-std=c++11']
@ -127,12 +127,12 @@ decoders_module = [
] ]
setup( setup(
name='paddlespeech_ldd_ctcdecoders', name='paddlespeech_ctcdecoders',
version='0.2.0', version='0.2.0',
description="CTC decoders in paddlespeech", description="CTC decoders in paddlespeech",
author="PaddlePaddle Speech user lidongdong compile for windows", author="PaddlePaddle Speech and Language Team",
author_email="double_dongli@foxmail.com", author_email="paddlesl@baidu.com",
url="https://github.com/PaddlePaddle/PaddleSpeech", url="https://github.com/PaddlePaddle/PaddleSpeech",
license='Apache 2.0, GNU Lesser General Public License v3 (LGPLv3) (LGPL-3)', license='Apache 2.0, GNU Lesser General Public License v3 (LGPLv3) (LGPL-3)',
ext_modules=decoders_module, ext_modules=decoders_module,
py_modules=['paddlespeech_ldd_ctcdecoders']) py_modules=['paddlespeech_ctcdecoders'])

Loading…
Cancel
Save