ThomasV
10 years ago
2 changed files with 25 additions and 1 deletions
@ -0,0 +1,24 @@ |
|||
#!/bin/bash |
|||
# |
|||
# This script creates a virtualenv named 'env' and installs all |
|||
# python dependencies before activating the env and running Electrum. |
|||
# If 'env' already exists, it is activated and Electrum is started |
|||
# without any installations. Additionally, the PYTHONPATH environment |
|||
# variable is set properly before running Electrum. |
|||
# |
|||
# python-qt and its dependencies will still need to be installed with |
|||
# your package manager. |
|||
|
|||
if [ -e ./env/bin/activate ]; then |
|||
source ./env/bin/activate |
|||
else |
|||
virtualenv env |
|||
source ./env/bin/activate |
|||
python setup.py install |
|||
fi |
|||
|
|||
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH |
|||
|
|||
./electrum |
|||
|
|||
deactivate |
Loading…
Reference in new issue