Add Support for Python 3.6+ in ./electrum-env
This commit is contained in:
parent
554cf91cff
commit
4aff20273a
|
@ -9,6 +9,8 @@
|
||||||
# python-qt and its dependencies will still need to be installed with
|
# python-qt and its dependencies will still need to be installed with
|
||||||
# your package manager.
|
# your package manager.
|
||||||
|
|
||||||
|
PYTHON_VER="$(python3 -c 'import sys; print(sys.version[:3])')"
|
||||||
|
|
||||||
if [ -e ./env/bin/activate ]; then
|
if [ -e ./env/bin/activate ]; then
|
||||||
source ./env/bin/activate
|
source ./env/bin/activate
|
||||||
else
|
else
|
||||||
|
@ -17,7 +19,7 @@ else
|
||||||
python3 setup.py install
|
python3 setup.py install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PYTHONPATH="/usr/local/lib/python3.5/site-packages:$PYTHONPATH"
|
export PYTHONPATH="/usr/local/lib/python${PYTHON_VER}/site-packages:$PYTHONPATH"
|
||||||
|
|
||||||
./electrum "$@"
|
./electrum "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue