Delete install.py
Browse files- install.py +0 -27
install.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import launch
|
3 |
-
import platform
|
4 |
-
import subprocess
|
5 |
-
|
6 |
-
def checking():
|
7 |
-
try:
|
8 |
-
subprocess.run("aria2c", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
9 |
-
return True
|
10 |
-
except FileNotFoundError:
|
11 |
-
return False
|
12 |
-
|
13 |
-
if platform.system() == "Linux":
|
14 |
-
if not checking():
|
15 |
-
launch.run("apt update && apt -y install -qq aria2", "Installing requirements for Model Downloader")
|
16 |
-
else:
|
17 |
-
pass
|
18 |
-
elif platform.system() == "Darwin":
|
19 |
-
if not checking():
|
20 |
-
launch.run("brew install aria2", "Installing requirements for Model Downloader")
|
21 |
-
else:
|
22 |
-
pass
|
23 |
-
elif platform.system() == "Windows":
|
24 |
-
if not checking():
|
25 |
-
print("Model Downloader required aria2c, see tutorial https://www.youtube.com/watch?v=JnWQST4ay_E")
|
26 |
-
else:
|
27 |
-
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|