#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
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -44,16 +44,17 @@ function installDependencies()
gettext
# additional requirements
sudo apt-get install -y postgresql libpq-dev
# for cln-grpc
sudo apt-get install -y cargo rustfmt
# for pylightning
echo "- Install from the requirements.txt"
sudo -u bitcoin pip3 install --user mrkd==0.2.0
sudo -u bitcoin pip3 install --user mistune==0.8.4
# rust for cln-grpc, includes rustfmt
sudo -u bitcoin curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u bitcoin sh -s -- -y
# mrkd and mistune needs to be globally available for the build
sudo pip3 install mrkd==0.2.0
sudo pip3 install mistune==0.8.4
# poetry
sudo -u bitcoin pip3 install --user poetry
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
export PATH="home/bitcoin/.local/bin:$PATH"
sudo -u bitcoin /home/bitcoin/.local/bin/poetry install
}