-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* joinmarket update to v0.9.11 * remove deprecated install tweak * remove pyhton 3.7 support * stop using system-side PySide2 * don't install the QT Gui on ARM * format start.joininbox.sh * remove arm specific qtgui deps, no qtgui on build for arm * don't protect system packages from pip install * add libltdl-dev to apt-get packages
- Loading branch information
Showing
4 changed files
with
99 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,69 +266,38 @@ echo "##########" | |
echo | ||
# apt dependencies for python | ||
apt-get install -y python3 virtualenv python3-venv python3-dev python3-wheel python3-jinja2 python3-pip | ||
if [ "${cpu}" = "armv7l" ] || [ "${cpu}" = "armv6l" ]; then | ||
if [ ! -f "/usr/bin/python3.7" ]; then | ||
# install python37 | ||
pythonVersion="3.7.9" | ||
majorPythonVersion=$(echo "$pythonVersion" | awk -F. '{print $1"."$2}') | ||
# dependencies | ||
apt-get install software-properties-common build-essential libnss3-dev zlib1g-dev libgdbm-dev libncurses5-dev libssl-dev libffi-dev libreadline-dev libsqlite3-dev libbz2-dev -y | ||
# download | ||
wget --prefer-family=ipv4 --progress=bar:force https://www.python.org/ftp/python/${pythonVersion}/Python-${pythonVersion}.tgz | ||
# optional signature for verification | ||
wget --prefer-family=ipv4 --progress=bar:force https://www.python.org/ftp/python/${pythonVersion}/Python-${pythonVersion}.tgz.asc | ||
# get PGP pubkey of Ned Deily (Python release signing key) <[email protected]> | ||
gpg --recv-key 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D | ||
# check for: Good signature from "Pablo Galindo Salgado <[email protected]>" | ||
gpg --verify Python-${pythonVersion}.tgz.asc || exit 1 | ||
# unzip | ||
tar xvf Python-${pythonVersion}.tgz | ||
cd Python-${pythonVersion} || exit 1 | ||
# configure | ||
./configure --enable-optimizations | ||
# install | ||
make altinstall | ||
# move the python binary to the expected directory | ||
mv "$(which python${majorPythonVersion})" /usr/bin/ | ||
# check | ||
ls -la /usr/bin/python${majorPythonVersion} || exit 1 | ||
# clean | ||
cd .. | ||
rm Python-${pythonVersion}.tgz | ||
rm -rf Python-${pythonVersion} | ||
fi | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1 | ||
echo "# python calls python3.7" | ||
|
||
if [ -f "/usr/bin/python3.8" ]; then | ||
# use python 3.8 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 | ||
echo "# python calls python3.8" | ||
elif [ -f "/usr/bin/python3.9" ]; then | ||
# use python 3.9 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 | ||
echo "# python calls python3.9" | ||
elif [ -f "/usr/bin/python3.10" ]; then | ||
# use python 3.10 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 | ||
echo "# python calls python3.10" | ||
elif [ -f "/usr/bin/python3.11" ]; then | ||
# use python 3.11 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 | ||
echo "# python calls python3.11" | ||
else | ||
if [ -f "/usr/bin/python3.7" ]; then | ||
# make sure /usr/bin/python exists (and calls Python3.7) | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1 | ||
echo "# python calls python3.7" | ||
elif [ -f "/usr/bin/python3.8" ]; then | ||
# use python 3.8 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 | ||
echo "# python calls python3.8" | ||
elif [ -f "/usr/bin/python3.9" ]; then | ||
# use python 3.9 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 | ||
echo "# python calls python3.9" | ||
elif [ -f "/usr/bin/python3.10" ]; then | ||
# use python 3.10 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 | ||
echo "# python calls python3.10" | ||
elif [ -f "/usr/bin/python3.11" ]; then | ||
# use python 3.11 if available | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 | ||
echo "# python calls python3.11" | ||
else | ||
echo "# FAIL- there is no tested version of python present" | ||
exit 1 | ||
fi | ||
echo "# FAIL- there is no tested version of python present" | ||
exit 1 | ||
fi | ||
|
||
# make sure /usr/bin/pip exists (and calls pip3) | ||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 | ||
|
||
# don't protect system packages from pip install | ||
# tracking issue: https://github.com/raspiblitz/raspiblitz/issues/4170 | ||
for PYTHONDIR in /usr/lib/python3.*; do | ||
if [ -f "$PYTHONDIR/EXTERNALLY-MANAGED" ]; then | ||
rm "$PYTHONDIR/EXTERNALLY-MANAGED" | ||
fi | ||
done | ||
|
||
# setuptools needed for Nyx | ||
pip install setuptools | ||
|
||
|
@@ -359,6 +328,8 @@ apt-get install -y dialog | |
apt-get install -y qrencode | ||
# unzip for the pruned node snapshot | ||
apt-get install -y unzip | ||
# JoinMarket dependency https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/5bfa08c6f558458c9a93e8095ce9dc1b62412838/install.sh#L76C10-L76C21 | ||
apt-get install -y libltdl-dev | ||
apt-get clean | ||
apt-get -y autoremove | ||
|
||
|
@@ -593,7 +564,6 @@ echo "#############" | |
echo " | ||
if [ -f \"/home/joinmarket/joinmarket-clientserver/jmvenv/bin/activate\" ]; then | ||
. /home/joinmarket/joinmarket-clientserver/jmvenv/bin/activate | ||
/home/joinmarket/joinmarket-clientserver/jmvenv/bin/python -c \"import PySide2\" | ||
cd /home/joinmarket/joinmarket-clientserver/scripts/ | ||
fi | ||
# shortcut commands | ||
|
@@ -616,10 +586,16 @@ echo "######################" | |
echo "# Install JoinMarket" | ||
echo "######################" | ||
|
||
qtgui=true | ||
|
||
if [ "${cpu}" = x86_64 ]; then | ||
qtgui=true | ||
else | ||
# no qtgui on arm | ||
qtgui=false | ||
fi | ||
checkEntry=$(runuser joinmarket -c "cat /home/joinmarket/joinin.conf | grep -c qtgui") | ||
if [ ${checkEntry} -eq 0 ]; then | ||
echo "qtgui=true" | tee -a /home/joinmarket/joinin.conf | ||
echo "qtgui=$qtgui" | tee -a /home/joinmarket/joinin.conf | ||
fi | ||
if [ "$4" = "without-qt" ]; then | ||
qtgui="false" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.