Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
Zengyi-Qin committed Feb 19, 2024
1 parent 10006e9 commit 40bc3a5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ basetts_outputs_use_bert/
basetts_outputs/
multilingual_ckpts
basetts_outputs_package/
build/
*.egg-info/

*.zip
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
## Usage (After installing OpenVoice)
```
pip install .
python -m unidic download
```
# MyShell TTS Base Speakers

19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import os
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install

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

class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
os.system('python -m unidic download')


class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
develop.run(self)
os.system('python -m unidic download')

setup(
name='MyShellTTSBase',
version='0.1.0',
Expand All @@ -13,4 +28,8 @@
package_data={
'': ['*.txt', 'cmudict_*'],
},
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
)

0 comments on commit 40bc3a5

Please sign in to comment.