Skip to content

Commit

Permalink
Merge pull request #322 from messense/rustup
Browse files Browse the repository at this point in the history
Install Rust for piwheels user with rustup
  • Loading branch information
bennuttall committed Oct 25, 2022
2 parents be73697 + 57d2a67 commit 702092b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy_slave.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi

apt update
apt -y upgrade
apt -y install vim ssh-import-id tree byobu htop pkg-config cmake time pandoc \
apt -y install vim wget curl ssh-import-id tree byobu htop pkg-config cmake time pandoc \
gfortran ipython3 git qt5-qmake python3-dev python3-pip python3-apt \
zlib1g-dev libpq-dev libffi-dev libxml2-dev libhdf5-dev libldap2-dev \
libjpeg-dev libbluetooth-dev libusb-dev libhidapi-dev libfreetype6-dev \
Expand All @@ -58,7 +58,7 @@ apt -y install vim ssh-import-id tree byobu htop pkg-config cmake time pandoc \
libudev-dev libopus-dev libvpx-dev libc-bin libavdevice-dev libadios-dev \
libavfilter-dev libavutil-dev libcec-dev lsb-release pybind11-dev \
libsnappy-dev libpcap0.8-dev swig libzmq5 portaudio19-dev libqpdf-dev \
coinor-libipopt-dev libsrtp2-dev default-libmysqlclient-dev cargo golang \
coinor-libipopt-dev libsrtp2-dev default-libmysqlclient-dev golang \
libgeos-dev $LIBGLES $LIBXLST $SOUNDFONT $POSTGRES_SERVER_DEV $TURBOGEARS \
$PYTHON2_PACKAGES $QMAKE libgphoto2-dev libsqlite3-dev libsqlcipher-dev \
ninja-build $FPRINT
Expand All @@ -78,6 +78,9 @@ getent group piwheels || groupadd piwheels
getent passwd piwheels || useradd -g piwheels -m -s /bin/bash piwheels
passwd -d piwheels

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo '. ~/.cargo/env' > /home/piwheels/.bashrc

if [ -d piwheels ]; then
cd piwheels
git pull
Expand Down

0 comments on commit 702092b

Please sign in to comment.