Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
ba28c92b
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
1 年多 前同步成功
通知
208
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看板
提交
ba28c92b
编写于
10月 19, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
setup with ubuntu deps
上级
58fe8521
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
82 addition
and
3 deletion
+82
-3
.gitignore
.gitignore
+1
-0
requirements.txt
requirements.txt
+1
-1
setup.py
setup.py
+79
-1
setup.sh
setup.sh
+1
-1
未找到文件。
.gitignore
浏览文件 @
ba28c92b
...
...
@@ -12,6 +12,7 @@
*.done
*.whl
*.egg-info
build
docs/build/
...
...
requirements.txt
浏览文件 @
ba28c92b
...
...
@@ -39,4 +39,4 @@ timer
pyworld
jieba
phkit
yq
setup.py
浏览文件 @
ba28c92b
...
...
@@ -17,6 +17,12 @@ import re
from
setuptools
import
find_packages
from
setuptools
import
setup
from
setuptools
import
Command
from
setuptools.command.develop
import
develop
from
setuptools.command.install
import
install
import
subprocess
as
sp
HERE
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
def
read
(
*
names
,
**
kwargs
):
...
...
@@ -29,6 +35,57 @@ VERSION = '2.1.2'
long_description
=
read
(
"README.md"
)
deps
=
[
d
.
strip
()
for
d
in
read
(
'requirements.txt'
).
split
()]
def
_pre_install
():
sp
.
check_call
(
"apt-get update -y"
.
split
())
sp
.
check_call
(
"apt-get install -y"
.
split
()
+
'vim tig tree sox pkg-config'
.
split
()
+
'libsndfile1 libflac-dev libogg-dev'
.
split
()
+
'libvorbis-dev libboost-dev swig python3-dev'
.
split
())
def
_post_install
(
install_lib_dir
):
pass
class
DevelopCommand
(
develop
):
def
run
(
self
):
_pre_install
()
develop
.
run
(
self
)
self
.
execute
(
_post_install
,
(
self
.
install_lib
,
),
msg
=
"Post Install..."
)
class
InstallCommand
(
install
):
def
run
(
self
):
_pre_install
()
install
.
run
(
self
)
self
.
execute
(
_post_install
,
(
self
.
install_lib
,
),
msg
=
"Post Install..."
)
# cmd: python setup.py upload
class
UploadCommand
(
Command
):
description
=
"Build and publish the package."
user_options
=
[]
def
initialize_options
(
self
):
pass
def
finalize_options
(
self
):
pass
def
run
(
self
):
try
:
print
(
"Removing previous dist/ ..."
)
shutil
.
rmtree
(
os
.
path
.
join
(
HERE
,
"dist"
))
except
OSError
:
pass
print
(
"Building source distribution..."
)
sp
.
check_call
([
sys
.
executable
,
"setup.py"
,
"sdist"
])
print
(
"Uploading package to PyPi..."
)
sp
.
check_call
([
"twine"
,
"upload"
,
"dist/*"
])
sys
.
exit
()
setup_info
=
dict
(
# Metadata
name
=
'paddle-speech'
,
...
...
@@ -36,10 +93,24 @@ setup_info = dict(
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_content_type
=
"text/markdown"
,
license
=
'Apache 2'
,
keywords
=
[
"speech"
,
"asr"
,
"tts"
,
"text frontend"
,
"MFA"
,
"paddlepaddle"
,
"transformer"
,
"conformer"
,
"fastspeech"
,
"vocoder"
,
"pwgan"
,
"gan"
,
],
python_requires
=
'>=3.6'
,
install_requires
=
deps
,
extras_require
=
{
...
...
@@ -48,6 +119,11 @@ setup_info = dict(
"recommonmark>=0.5.0"
,
"sphinx-markdown-tables"
,
"sphinx-autobuild"
],
},
cmdclass
=
{
'develop'
:
DevelopCommand
,
'install'
:
InstallCommand
,
'upload'
:
UploadCommand
,
},
# Package info
packages
=
find_packages
(
exclude
=
(
'tests'
,
'tests.*'
)),
...
...
@@ -58,6 +134,8 @@ setup_info = dict(
'Intended Audience :: Science/Research'
,
'Topic :: Scientific/Engineering :: Artificial Intelligence'
,
'License :: OSI Approved :: Apache Software License'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.8'
,
...
...
setup.sh
浏览文件 @
ba28c92b
...
...
@@ -26,7 +26,7 @@ source tools/venv/bin/activate
# install python dependencies
if
[
-f
"requirements.txt"
]
;
then
pip3
install
-r
requirements.txt
pip3
install
.
fi
if
[
$?
!=
0
]
;
then
error_msg
"Install python dependencies failed !!!"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录