Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
4081633b
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4081633b
编写于
10月 20, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix not found pushd
上级
86df36a1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
23 deletion
+22
-23
setup.py
setup.py
+22
-23
未找到文件。
setup.py
浏览文件 @
4081633b
...
...
@@ -27,18 +27,6 @@ import subprocess as sp
HERE
=
Path
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)))
def
read
(
*
names
,
**
kwargs
):
with
io
.
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
names
),
encoding
=
kwargs
.
get
(
"encoding"
,
"utf8"
))
as
fp
:
return
fp
.
read
()
VERSION
=
'2.1.2'
long_description
=
read
(
"README.md"
)
deps
=
[
d
.
strip
()
for
d
in
read
(
'requirements.txt'
).
split
()]
@
contextlib
.
contextmanager
def
pushd
(
new_dir
):
old_dir
=
os
.
getcwd
()
...
...
@@ -49,7 +37,13 @@ def pushd(new_dir):
os
.
chdir
(
old_dir
)
def
check_call
(
cmd
:
str
,
shell
=
False
,
executable
=
None
):
def
read
(
*
names
,
**
kwargs
):
with
io
.
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
names
),
encoding
=
kwargs
.
get
(
"encoding"
,
"utf8"
))
as
fp
:
return
fp
.
read
()
def
check_call
(
cmd
:
str
,
shell
=
True
,
executable
=
None
):
try
:
sp
.
check_call
(
cmd
.
split
(),
shell
=
shell
,
...
...
@@ -69,22 +63,27 @@ def _pre_install():
'libvorbis-dev libboost-dev swig python3-dev '
)
# tools/make
tool_dir
=
HERE
/
"tools"
for
f
in
tool_dir
.
glob
(
"*.done"
):
f
.
unlink
()
#
for f in tool_dir.glob("*.done"):
#
f.unlink()
with
pushd
(
tool_dir
):
check_call
(
"make"
,
True
)
check_call
(
"make"
)
def
_post_install
(
install_lib_dir
):
# ctcdecoder
check_call
(
"pushd deepspeech/decoders/ctcdecoder/swig && bash setup.sh && popd"
)
ctcdecoder_dir
=
HERE
/
'deepspeech/decoders/ctcdecoder/swig'
with
puahd
(
ctcdecoder_dir
):
check_call
(
"setup.sh"
)
# install third_party
check_call
(
"pushd third_party && bash install.sh && popd"
)
third_party_dir
=
HERE
/
'third_party'
with
puahd
(
third_party_dir
):
check_call
(
"bash install.sh"
)
# install autolog
check_call
(
"pushd tools/extras && bash install_autolog.sh && popd"
)
tools_extrs_dir
=
HERE
/
'tools/extras'
with
puahd
(
tools_extrs_dir
):
check_call
(
"bash install_autolog.sh"
)
class
DevelopCommand
(
develop
):
...
...
@@ -128,13 +127,13 @@ class UploadCommand(Command):
setup_info
=
dict
(
# Metadata
name
=
'paddle-speech'
,
version
=
VERSION
,
version
=
'2.1.2'
,
author
=
'PaddleSL Speech Team'
,
author_email
=
''
,
url
=
'https://github.com/PaddlePaddle/DeepSpeech'
,
license
=
'Apache 2'
,
description
=
'Speech tools and models based on Paddlepaddle'
,
long_description
=
long_description
,
long_description
=
read
(
"README.md"
)
,
long_description_content_type
=
"text/markdown"
,
keywords
=
[
"speech"
,
...
...
@@ -151,7 +150,7 @@ setup_info = dict(
"gan"
,
],
python_requires
=
'>=3.6'
,
install_requires
=
deps
,
install_requires
=
[
d
.
strip
()
for
d
in
read
(
'requirements.txt'
).
split
()]
,
extras_require
=
{
'doc'
:
[
"sphinx"
,
"sphinx-rtd-theme"
,
"numpydoc"
,
"myst_parser"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录