Spaces:
Running
Running
salomonsky
commited on
Update setup.py
Browse files
setup.py
CHANGED
@@ -1,30 +1,7 @@
|
|
1 |
-
#!/usr/bin/env python
|
2 |
-
# ,*++++++*, ,*++++++*,
|
3 |
-
# *++. .+++ *++. .++*
|
4 |
-
# *+* ,++++* *+* *+* ,++++, *+*
|
5 |
-
# ,+, .++++++++++* ,++,,,,*+, ,++++++++++. *+,
|
6 |
-
# *+. .++++++++++++..++ *+.,++++++++++++. .+*
|
7 |
-
# .+* ++++++++++++.*+, .+*.++++++++++++ *+,
|
8 |
-
# .++ *++++++++* ++, .++.*++++++++* ++,
|
9 |
-
# ,+++*. . .*++, ,++*. .*+++*
|
10 |
-
# *+, .,*++**. .**++**. ,+*
|
11 |
-
# .+* *+,
|
12 |
-
# *+. Coqui .+*
|
13 |
-
# *+* +++ TTS +++ *+*
|
14 |
-
# .+++*. . . *+++.
|
15 |
-
# ,+* *+++*... ...*+++* *+,
|
16 |
-
# .++. .""""+++++++****+++++++"""". ++.
|
17 |
-
# ,++. .++,
|
18 |
-
# .++* *++.
|
19 |
-
# *+++, ,+++*
|
20 |
-
# .,*++++::::::++++*,.
|
21 |
-
# ``````
|
22 |
-
|
23 |
import os
|
24 |
import subprocess
|
25 |
import sys
|
26 |
from packaging.version import Version
|
27 |
-
|
28 |
import numpy
|
29 |
import setuptools.command.build_py
|
30 |
import setuptools.command.develop
|
@@ -35,30 +12,23 @@ python_version = sys.version.split()[0]
|
|
35 |
if Version(python_version) < Version("3.9") or Version(python_version) >= Version("3.12"):
|
36 |
raise RuntimeError("TTS requires python >= 3.9 and < 3.12 " "but your Python version is {}".format(sys.version))
|
37 |
|
38 |
-
|
39 |
cwd = os.path.dirname(os.path.abspath(__file__))
|
40 |
with open(os.path.join(cwd, "TTS", "VERSION")) as fin:
|
41 |
version = fin.read().strip()
|
42 |
|
43 |
-
|
44 |
-
class build_py(setuptools.command.build_py.build_py): # pylint: disable=too-many-ancestors
|
45 |
def run(self):
|
46 |
setuptools.command.build_py.build_py.run(self)
|
47 |
|
48 |
-
|
49 |
class develop(setuptools.command.develop.develop):
|
50 |
def run(self):
|
51 |
setuptools.command.develop.develop.run(self)
|
52 |
|
53 |
-
|
54 |
-
# The documentation for this feature is in server/README.md
|
55 |
package_data = ["TTS/server/templates/*"]
|
56 |
|
57 |
-
|
58 |
def pip_install(package_name):
|
59 |
subprocess.call([sys.executable, "-m", "pip", "install", package_name])
|
60 |
|
61 |
-
|
62 |
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines()
|
63 |
with open(os.path.join(cwd, "requirements.notebooks.txt"), "r") as f:
|
64 |
requirements_notebooks = f.readlines()
|
@@ -138,4 +108,4 @@ setup(
|
|
138 |
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
139 |
],
|
140 |
zip_safe=False,
|
141 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
import subprocess
|
3 |
import sys
|
4 |
from packaging.version import Version
|
|
|
5 |
import numpy
|
6 |
import setuptools.command.build_py
|
7 |
import setuptools.command.develop
|
|
|
12 |
if Version(python_version) < Version("3.9") or Version(python_version) >= Version("3.12"):
|
13 |
raise RuntimeError("TTS requires python >= 3.9 and < 3.12 " "but your Python version is {}".format(sys.version))
|
14 |
|
|
|
15 |
cwd = os.path.dirname(os.path.abspath(__file__))
|
16 |
with open(os.path.join(cwd, "TTS", "VERSION")) as fin:
|
17 |
version = fin.read().strip()
|
18 |
|
19 |
+
class build_py(setuptools.command.build_py.build_py):
|
|
|
20 |
def run(self):
|
21 |
setuptools.command.build_py.build_py.run(self)
|
22 |
|
|
|
23 |
class develop(setuptools.command.develop.develop):
|
24 |
def run(self):
|
25 |
setuptools.command.develop.develop.run(self)
|
26 |
|
|
|
|
|
27 |
package_data = ["TTS/server/templates/*"]
|
28 |
|
|
|
29 |
def pip_install(package_name):
|
30 |
subprocess.call([sys.executable, "-m", "pip", "install", package_name])
|
31 |
|
|
|
32 |
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines()
|
33 |
with open(os.path.join(cwd, "requirements.notebooks.txt"), "r") as f:
|
34 |
requirements_notebooks = f.readlines()
|
|
|
108 |
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
109 |
],
|
110 |
zip_safe=False,
|
111 |
+
)
|