Skip to content

Commit

Permalink
install: use system python-pyqt5 package
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Sep 9, 2020
1 parent 8f33b03 commit 715f892
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/install.joinmarket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ function installJoinMarket() {
cd joinmarket-clientserver
sudo -u joinmarket git reset --hard $version
# make install.sh set up jmvenv with -- system-site-packages
sed -i "s#^ virtualenv -p \"\${python}\" \"\${jm_source}/jmvenv\" || return 1#\
virtualenv --system-site-packages -p \"\${python}\" \"\${jm_source}/jmvenv\" || return 1#g" \
install.sh
# and import the PySide2 armf package from the system
sudo -u joinmarket sed -i "s#^ virtualenv -p \"\${python}\" \"\${jm_source}/jmvenv\" || return 1#\
virtualenv --system-site-packages -p \"\${python}\" \"\${jm_source}/jmvenv\" || return 1 ;\
/home/joinmarket/joinmarket-clientserver/jmvenv/bin/python -c \'import PySide2\'\
#g" install.sh
# don't install PySide2 - using the system-site-package instead
sudo -u joinmarket sed -i "s#^PySide2##g" requirements/gui.txt
# don't install PyQt5 - using the system package instead
sudo -u joinmarket sed -i "s#^PyQt5==5.14.2##g" requirements/gui.txt
sudo apt-get install -y python3-pyqt5
sudo -u joinmarket ./install.sh --with-qt

echo "# installing python requirements to run the QT GUI on ARM"
source jmvenv/bin/activate || exit 1
# use the PySide2 armf package from the system
/home/joinmarket/joinmarket-clientserver/jmvenv/bin/python -c 'import PySide2'
pip install qrcode[pil]
pip install https://github.com/sunu/qt5reactor/archive/58410aaead2185e9917ae9cac9c50fe7b70e4a60.zip#egg=qt5reactor
echo "# installed JoinMarket $version"
}

Expand Down

0 comments on commit 715f892

Please sign in to comment.