File tree 3 files changed +22
-5
lines changed
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ basetts_outputs_use_bert/
4
4
basetts_outputs /
5
5
multilingual_ckpts
6
6
basetts_outputs_package /
7
+ build /
7
8
* .egg-info /
8
9
9
10
* .zip
Original file line number Diff line number Diff line change 1
- ## Usage (After installing OpenVoice)
2
- ```
3
- pip install .
4
- python -m unidic download
5
- ```
1
+ # MyShell TTS Base Speakers
2
+
Original file line number Diff line number Diff line change 1
1
import os
2
2
from setuptools import setup , find_packages
3
+ from setuptools .command .develop import develop
4
+ from setuptools .command .install import install
3
5
4
6
cwd = os .path .dirname (os .path .abspath (__file__ ))
5
7
requirements = open (os .path .join (cwd , "requirements.txt" ), "r" ).readlines ()
6
8
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
+
7
22
setup (
8
23
name = 'MyShellTTSBase' ,
9
24
version = '0.1.0' ,
13
28
package_data = {
14
29
'' : ['*.txt' , 'cmudict_*' ],
15
30
},
31
+ cmdclass = {
32
+ 'develop' : PostDevelopCommand ,
33
+ 'install' : PostInstallCommand ,
34
+ },
16
35
)
You can’t perform that action at this time.
0 commit comments