Skip to content

Commit 40bc3a5

Browse files
committed
update install
1 parent 10006e9 commit 40bc3a5

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ basetts_outputs_use_bert/
44
basetts_outputs/
55
multilingual_ckpts
66
basetts_outputs_package/
7+
build/
78
*.egg-info/
89

910
*.zip

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
## Usage (After installing OpenVoice)
2-
```
3-
pip install .
4-
python -m unidic download
5-
```
1+
# MyShell TTS Base Speakers
2+

setup.py

+19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
import os
22
from setuptools import setup, find_packages
3+
from setuptools.command.develop import develop
4+
from setuptools.command.install import install
35

46
cwd = os.path.dirname(os.path.abspath(__file__))
57
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines()
68

9+
class PostInstallCommand(install):
10+
"""Post-installation for installation mode."""
11+
def run(self):
12+
install.run(self)
13+
os.system('python -m unidic download')
14+
15+
16+
class PostDevelopCommand(develop):
17+
"""Post-installation for development mode."""
18+
def run(self):
19+
develop.run(self)
20+
os.system('python -m unidic download')
21+
722
setup(
823
name='MyShellTTSBase',
924
version='0.1.0',
@@ -13,4 +28,8 @@
1328
package_data={
1429
'': ['*.txt', 'cmudict_*'],
1530
},
31+
cmdclass={
32+
'develop': PostDevelopCommand,
33+
'install': PostInstallCommand,
34+
},
1635
)

0 commit comments

Comments
 (0)