未验证 提交 6b36a957 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #1568 from Jackwaterveg/update_paddleaudio

[Audio] fix setup.py of paddleaudio
......@@ -49,10 +49,6 @@ class InstallCommand(install):
def write_version_py(filename='paddleaudio/__init__.py'):
import paddleaudio
if hasattr(paddleaudio,
"__version__") and paddleaudio.__version__ == VERSION:
return
with open(filename, "a") as f:
f.write(f"__version__ = '{VERSION}'")
......@@ -65,7 +61,7 @@ def remove_version_py(filename='paddleaudio/__init__.py'):
if "__version__" not in line:
f.write(line)
remove_version_py()
write_version_py()
setuptools.setup(
......@@ -93,10 +89,12 @@ setuptools.setup(
'dtaidistance >= 2.3.6',
'mcd >= 0.4',
],
setup_requires=[
extras_require={
'test': [
'nose', 'librosa==0.8.1', 'soundfile==0.10.3.post1',
'torchaudio==0.10.2', 'pytest-benchmark'
],
},
cmdclass={
'install': InstallCommand,
'test': TestCommand,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册