-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.py
35 lines (25 loc) · 1.02 KB
/
install.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
import os
import sys
import platform
def subInstall(package_name: str):
if "win" in platform.platform().lower():
os.system(f'python -m pip install {package_name}')
# subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
elif "linux" in platform.platform().lower():
os.system(f'python3 -m pip install {package_name}')
# subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name])
elif "mac" in platform.platform().lower():
os.system(f'python3 -m pip install {package_name}')
# subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name])
else:
raise ValueError("Unsupported OS")
def install_deps():
deps = ["ecdsa", "setuptools", "wheel", "hdwallet"]
for dep in deps:
print(f" Installing: {dep} ----------------------------------")
subInstall(dep)
def main():
install_deps()
print("cryptofuzz and its dependencies have been installed!")
if __name__ == "__main__":
main()