]>
zdv2.bktei.com Git - EVA-2020-02-2.git/blob - install.sh
   3 LIBRARY_VERSION
=`cat library/setup.py | grep version | awk -F"'" '{print $2}'` 
   4 LIBRARY_NAME
=`cat library/setup.py | grep name | awk -F"'" '{print $2}'` 
   6 printf "$LIBRARY_NAME $LIBRARY_VERSION Python Library: Installer\n\n" 
   8 if [ $
(id 
-u) -ne 0 ]; then 
   9         printf "Script must be run as root. Try 'sudo ./install.sh'\n" 
  15 printf "Installing for Python 2..\n" 
  16 python setup.py 
install 
  18 if [ -f "/usr/bin/python3" ]; then 
  19         printf "Installing for Python 3..\n" 
  20         python3 setup.py 
install