#3054 rustup for cargo and global mrkd+mistune

This commit is contained in:
openoms
2022-05-09 01:05:46 +01:00
parent fa589ed95e
commit b2669eda0d

View File

@@ -44,16 +44,17 @@ function installDependencies()
gettext gettext
# additional requirements # additional requirements
sudo apt-get install -y postgresql libpq-dev sudo apt-get install -y postgresql libpq-dev
# for cln-grpc # rust for cln-grpc, includes rustfmt
sudo apt-get install -y cargo rustfmt sudo -u bitcoin curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u bitcoin sh -s -- -y
# for pylightning # mrkd and mistune needs to be globally available for the build
echo "- Install from the requirements.txt" sudo pip3 install mrkd==0.2.0
sudo -u bitcoin pip3 install --user mrkd==0.2.0 sudo pip3 install mistune==0.8.4
sudo -u bitcoin pip3 install --user mistune==0.8.4 # poetry
sudo -u bitcoin pip3 install --user poetry sudo -u bitcoin pip3 install --user poetry
if ! grep -Eq '^PATH="$HOME/.local/bin:$PATH"' /mnt/hdd/raspiblitz.conf; then if ! grep -Eq '^PATH="$HOME/.local/bin:$PATH"' /mnt/hdd/raspiblitz.conf; then
echo 'PATH="$HOME/.local/bin:$PATH"' | sudo tee -a /home/bitcoin/.bashrc echo 'PATH="$HOME/.local/bin:$PATH"' | sudo tee -a /home/bitcoin/.profile
fi fi
export PATH="home/bitcoin/.local/bin:$PATH"
sudo -u bitcoin /home/bitcoin/.local/bin/poetry install sudo -u bitcoin /home/bitcoin/.local/bin/poetry install
} }