-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_requirements.sh
24 lines (22 loc) · 1.06 KB
/
install_requirements.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
if grep -s -q "MX8MQ" /sys/firmware/devicetree/base/model; then
echo "Installing DevBoard specific dependencies"
sudo apt-get install -y python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev
sudo pip3 install pygame
else
sudo apt-get install -y libsdl-image1.2-dev libsdl-ttf2.0-dev libatlas-base-dev
sudo pip3 install pygame
fi