Add a simple script to install FAAFO from PyPi
Change-Id: Ib1113d4da0945d9f2181bd4796e70c34c9856940
This commit is contained in:
parent
8eb0c917a3
commit
c26b745ce7
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
#
|
||||
# http://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 [[ -e /etc/os-release ]]; then
|
||||
source /etc/os-release
|
||||
if [[ $ID = 'centos' || $ID = 'fedora' || $ID = 'rhel' ]]; then
|
||||
sudo yum install -y python-devel python-pip
|
||||
elif [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python-dev python-pip
|
||||
elif [[ $ID = 'opensuse' || $ID = 'sles' ]]; then
|
||||
sudo zypper install -y python-devel python-pip
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
sudo pip install faafo
|
||||
else
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue