Skip to content

Commit

Permalink
Merge 9571782 into 9425319
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerj committed Nov 26, 2017
2 parents 9425319 + 9571782 commit faa374a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
3 changes: 3 additions & 0 deletions contrib/build-wine/build-electrum-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ else
fi
cp electrum-icons/icons_rc.py $WINEPREFIX/drive_c/electrum/gui/qt/

# Install frozen dependencies
$PYTHON -m pip install -r ../../deterministic_requirements.txt

pushd $WINEPREFIX/drive_c/electrum
$PYTHON setup.py install
popd
Expand Down
14 changes: 14 additions & 0 deletions contrib/deterministic_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
certifi==2017.11.5
chardet==3.0.4
dnspython==1.15.0
ecdsa==0.13
idna==2.6
jsonrpclib-pelix==0.3.1
pbkdf2==1.3
protobuf==3.5.0.post1
pyaes==1.6.1
PySocks==1.6.7
qrcode==5.3
requests==2.18.4
six==1.11.0
urllib3==1.22
22 changes: 22 additions & 0 deletions contrib/freeze_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/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/deterministic_requirements.txt

echo "Updated requirements"
13 changes: 4 additions & 9 deletions contrib/make_packages
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
#!/bin/bash

contrib=$(dirname "$0")

whereis pip3
if [ $? -ne 0 ] ; then echo "Install pip3" ; exit ; fi

rm $contrib/packages/ -r

#Install pure python modules in electrum directory
pip3 install pyaes -t ./packages
pip3 install ecdsa -t ./packages
pip3 install pbkdf2 -t ./packages
pip3 install requests -t ./packages
pip3 install qrcode -t ./packages
pip3 install protobuf -t ./packages
pip3 install dnspython -t ./packages
pip3 install jsonrpclib-pelix -t ./packages
pip3 install PySocks -t ./packages
pip3 install -r $contrib/deterministic_requirements.txt -t $contrib/packages

0 comments on commit faa374a

Please sign in to comment.