-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (53 loc) · 1.29 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
import sys
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
# Install PyTorch with CUDA support
subprocess.check_call(
[
sys.executable,
"-m",
"pip",
"install",
"torch",
"torchvision",
"torchaudio",
"--index-url",
"https://download.pytorch.org/whl/cu124",
]
)
setup(
name="AniSearchModel",
version="1.0.0",
packages=find_packages(where="src"),
package_dir={"": "src"},
install_requires=[
"pandas",
"numpy",
"transformers",
"sentence-transformers",
"tqdm",
"datasets",
"flask",
"flask-limiter",
"waitress",
"gunicorn",
"pytest",
"pytest-order",
"flask_limiter",
"flask_cors",
"concurrent-log-handler",
],
cmdclass={
"install": PostInstallCommand,
},
entry_points={
"console_scripts": [
"run-server=src.run_server:run_server",
],
},
)