LBRY-Vault/contrib/freeze_packages.sh
2017-11-27 19:46:22 +01:00

22 lines
444 B
Bash
Executable file

#!/bin/bash
# Run this after a new release to update dependencies
venv_dir=~/.electrum-venv
contrib=$(dirname "$0")
which virtualenv > /dev/null 2>&1 || { echo "Please install virtualenv" && exit 1; }
rm $venv_dir -rf
virtualenv $venv_dir
source $venv_dir/bin/activate
echo "Installing dependencies"
pushd $contrib/..
python setup.py install
popd
pip freeze | sed '/^Electrum/ d' > $contrib/requirements.txt
echo "Updated requirements"