From d21c1f2b104e337bc10c7973ad60d9934faa1ad0 Mon Sep 17 00:00:00 2001 From: lidongdong Date: Mon, 18 Jul 2022 20:09:42 +0800 Subject: [PATCH] fix:change setup --- third_party/ctc_decoders/setup.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/third_party/ctc_decoders/setup.py b/third_party/ctc_decoders/setup.py index ee81c8fd..f1eb4246 100644 --- a/third_party/ctc_decoders/setup.py +++ b/third_party/ctc_decoders/setup.py @@ -89,11 +89,11 @@ FILES = [ or fn.endswith('unittest.cc')) ] # yapf: enable -# LIBS = ['stdc++'] -LIBS = ['-static-libstdc++'] +LIBS = ['stdc++'] if platform.system() != 'Darwin': - # LIBS.append('rt') - pass + LIBS.append('rt') +if platform.system() != 'Windows': + LIBS = ['-static-libstdc++'] ARGS = ['-O3', '-DNDEBUG', '-DKENLM_MAX_ORDER=6', '-std=c++11'] @@ -127,12 +127,12 @@ decoders_module = [ ] setup( - name='paddlespeech_ldd_ctcdecoders', + name='paddlespeech_ctcdecoders', version='0.2.0', description="CTC decoders in paddlespeech", - author="PaddlePaddle Speech user lidongdong compile for windows", - author_email="double_dongli@foxmail.com", + author="PaddlePaddle Speech and Language Team", + author_email="paddlesl@baidu.com", url="https://github.com/PaddlePaddle/PaddleSpeech", license='Apache 2.0, GNU Lesser General Public License v3 (LGPLv3) (LGPL-3)', ext_modules=decoders_module, - py_modules=['paddlespeech_ldd_ctcdecoders']) + py_modules=['paddlespeech_ctcdecoders'])