Skip to content

Commit

Permalink
Fixed install to prevent downloading complete unstable install
Browse files Browse the repository at this point in the history
pyhton to python errors
  • Loading branch information
tvdtogt committed May 8, 2019
1 parent aa644fd commit 2b3e557
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
37 changes: 26 additions & 11 deletions install/pi/python3/install-part1.sh
Expand Up @@ -19,20 +19,11 @@
# This fileid must be taken from the shareble link from the google drive
export fileid=11Yw_Qdk8AzRFlcmnUlVd0ExjK9TLTbzJ

sudo apt-get update
sudo apt-get upgrade

#get llvm-7 running on stretch from unstable
sudo tee /etc/apt/sources.list.d/serval-extra.list > /dev/null <<EOF
#HACKHACKHACK
#This is for llvm-7. as that is not in the backports for now
#needed for installing
#deb http://deb.debian.org/debian stretch-backports main
deb [trusted=yes] http://http.us.debian.org/debian sid main non-free contrib
EOF


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y nano
sudo apt-get install -y libblas-dev liblapack-dev python3-dev libatlas-base-dev gfortran python3-setuptools git
sudo apt-get install -y python3-pip
Expand All @@ -46,7 +37,31 @@ sudo apt-get install -y python3-cffi
sudo apt-get install -y g++
sudo apt-get install -y alsa-base alsa-utils
sudo apt-get install -y libasound2-dev



#get llvm-7 running on stretch from unstable
sudo tee /etc/apt/sources.list.d/serval-extra.list > /dev/null <<EOF
#HACKHACKHACK
#This is for llvm-7. as that is not in the backports for now
#needed for installing
#deb http://deb.debian.org/debian stretch-backports main
deb [trusted=yes] http://http.us.debian.org/debian sid main non-free contrib
EOF

apt-get update
sudo apt-get install -y llvm-7/unstable
#make sure no other upgrades come from unstable
sudo tee /etc/apt/sources.list.d/serval-extra.list > /dev/null <<EOF
#HACKHACKHACK
#This is for llvm-7. as that is not in the backports for now
#needed for installing
#deb http://deb.debian.org/debian stretch-backports main
#deb [trusted=yes] http://http.us.debian.org/debian sid main non-free contrib
EOF

#prevent pulseaudio of starting: pulseaudio locks all the alsa drivers so no settings from asound can be used
cp /etc/pulse/client.conf /home/pi/.config/pulse
Expand Down
4 changes: 2 additions & 2 deletions install/pi/python3/install-part3.sh
Expand Up @@ -4,14 +4,14 @@ source /usr/local/bin/virtualenvwrapper.sh
workon serval

python3 -m pip install scipy
pyhton3 -m pip install pyaudio
python3 -m pip install pyaudio

python3 -m pip install resampy
# version 0.2.x of resampy uses llvmlite newest version.
# that is why we use llvm-7 from unstable

python3 -m pip install samplerate
pyhton3 -m pip install pyalsaaudio
python3 -m pip install pyalsaaudio

echo " "
echo "*****************************************************************"
Expand Down

0 comments on commit 2b3e557

Please sign in to comment.