-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (22 loc) · 1.12 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
import subprocess
import sys
def install(package):
print(f"Installing {package} ...")
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
packages = ["py_hd_wallet", "eel", "qrcode", "clove", "web3", "python-dotenv", "bit", "plotly", "scikit-garden", "scrypt", "cryptos", "multicrypto"]
def install_hdderive():
print("Installing HD Derive")
url = "https://github.com/dan-da/hd-wallet-derive"
subprocess.check_call([sys.executable, "-m", "cd", "hd-wallet-derive"])
subprocess.check_call([sys.executable, "-m", "php", "-r", "readfile('https://getcomposer.org/installer')";])
subprocess.check_call([sys.executable, "-m", "export", "PATH=/usr/local/opt/[email protected]/bin:$PATH"])
subprocess.check_call([sys.executable, "-m", "echo", '"export PATH=/usr/local/opt/[email protected]/bin:$PATH"', ">>", "~/.bash_profile"])
subprocess.check_call([sys.executable, "-m", "php", "composer.phar", install])
for package in packages:
try:
install(package)
except:
pass
print(f"Finished Installing {len(packages)} Packages")
install_hdderive()
print(f"Finished Installing HD Derive")