4 Star 20 Fork 1

Gitee 极速下载/Electrum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/spesmilo/electrum
克隆/下载
electrum-env 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
#
# This script creates a virtualenv named 'env' and installs all pinned
# python dependencies before activating the env and running Electrum.
# If 'env' already exists, it is activated and Electrum is started
# without any installations (unless the pins have changed).
#
# By default, not all optional dependencies are installed.
# E.g. for hardware wallet support, do:
# $ source ./env/bin/activate
# $ pip install -r contrib/deterministic-build/requirements-hw.txt
# $ deactivate
set -e
cd "$(dirname "$0")"
if [ -e ./env/bin/activate ]; then # existing venv
source ./env/bin/activate
else # create new venv
echo "Creating new venv."
python3 -m venv env
source ./env/bin/activate
pip install -r contrib/deterministic-build/requirements.txt
pip install -r contrib/deterministic-build/requirements-binaries.txt
pip install --no-dependencies -e .
echo "Done creating venv."
fi
# This might be an old directory and our requirements might have changed in the meantime:
DEPS_CHANGED_TIME=$(stat --printf %Y contrib/deterministic-build/requirements.txt)
if [ "$DEPS_CHANGED_TIME" -gt "$(stat --printf %Y env)" ] ; then
echo "Detected changed requirements.txt. Updating dependencies now..."
pip install -r contrib/deterministic-build/requirements.txt
pip install -r contrib/deterministic-build/requirements-binaries.txt
touch env
echo "Done updating deps."
fi
./run_electrum "$@"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/Electrum.git
git@gitee.com:mirrors/Electrum.git
mirrors
Electrum
Electrum
master

搜索帮助