Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update missing dependencies #151

Merged
merged 3 commits into from
Jan 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ You can enable the SPI by typing `sudo raspi-config` at the command line and the
#### Install Python API (best to run all of these commands as root using sudo)
```bash
# Install dependencies
sudo apt-get install git -y
sudo apt-get install bc i2c-tools -y
sudo apt-get install fonts-freefont-ttf -y
sudo apt-get install git bc i2c-tools fonts-freefont-ttf whiptail make gcc -y
# For Python 2
sudo apt-get install python-pil -y
sudo apt-get install python-smbus -y
sudo apt-get install python-dateutil -y
sudo apt-get install python-pil python-smbus python-dateutil -y
# For Python 3
sudo apt-get install python3-pil -y
sudo apt-get install python3-smbus -y
sudo apt-get install python3-dateutil -y
sudo apt-get install python3-pil python3-smbus python3-dateutil -y

git clone --depth=1 https://github.com/PiSupply/PaPiRus.git
cd PaPiRus
Expand Down
12 changes: 3 additions & 9 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ if [[ "$P23" == *"3"* ]]; then
fi

# Install required packages
apt-get install git -y
apt-get install git bc i2c-tools fonts-freefont-ttf whiptail make gcc -y
if [ $PY2 -eq 1 ]; then
apt-get install python-pil -y
apt-get install python-smbus -y
apt-get install python-dateutil -y
apt-get install python-pil python-smbus python-dateutil -y
fi
if [ $PY3 -eq 1 ]; then
apt-get install python3-pil -y
apt-get install python3-smbus -y
apt-get install python3-dateutil -y
apt-get install python3-pil python3-smbus python3-dateutil -y
fi
apt-get install bc i2c-tools -y
apt-get install fonts-freefont-ttf -y

# Enable SPI and I2C
raspi-config nonint do_spi 0
Expand Down