msg_warning "Your running Debian based linux.\n You might need to install 'sudo apt-get install build-essential python-dev\n."
# TODO: check if ubuntu and install build-essential, and python-dev
else
msg_warning "Your linux system was not test"
fi
fi
# Check if root
# Since we need to make sure paths are okay we need to run as normal user he will use ansible
[["$(whoami)"=="root"]]&& msg_exit "Please run as a normal user not root"
# Check python
[[-z"$(which python)"]]&& msg_exit "Opps python is not installed or not in your path."
# Check pip
[[-z"$(which pip)"]]&& msg_exit "pip is not installed!\nYou can try'sudo easy_install pip'"
# Check python file
[[!-f"$PYTHON_REQUIREMNTS_FILE"]]&& msg_exit "python_requirements '$PYTHON_REQUIREMNTS_FILE' does not exist or permssion issue.\nPlease check and rerun."
# Install
# By default we upgrade all packges to latest. if we need to pin packages use the python_requirements
echo"This script install python packages defined in '$PYTHON_REQUIREMNTS_FILE' "
echo"Since we only support global packages installation for now we need root password."