forked from Electron-Cash/Electron-Cash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-env
executable file
·28 lines (23 loc) · 867 Bytes
/
electron-env
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
#!/usr/bin/env bash
#
# This script creates a virtualenv named 'env' and installs all
# python dependencies before activating the env and running Electron Cash.
# If 'env' already exists, it is activated and Electron Cash is started
# without any installations. Additionally, the PYTHONPATH environment
# variable is set properly before running Electron Cash.
#
# python-qt and its dependencies will still need to be installed with
# your package manager.
# System dependencies
# sudo apt-get install python3-virtualenv python3-pip virtualenv git libsecp256k1-0
if [ -e ./env/bin/activate ]; then
source ./env/bin/activate
else
virtualenv env -p `which python3`
source ./env/bin/activate
python3 setup.py install
pip3 install -I pyqt5
fi
#export PYTHONPATH="/usr/local/lib/python3.5/site-packages:$PYTHONPATH"
./electron-cash "$@"
deactivate