install: added option to skip python system packages for setup.sh
This commit is contained in:
parent
281a848bbf
commit
5a81283fca
1 changed files with 16 additions and 13 deletions
15
setup.sh
15
setup.sh
|
@ -1,20 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# install pre-reqs using yum/apt
|
||||
PYTHON="${PYTHON:=python3}"
|
||||
PYTHON_DEP="${PYTHON_DEP:=python3}"
|
||||
if command -v apt &> /dev/null
|
||||
then
|
||||
|
||||
# install pre-reqs using yum/apt
|
||||
if [ -z "${NO_PYTHON}" ]; then
|
||||
if command -v apt &> /dev/null
|
||||
then
|
||||
echo "setup to install CORE using apt"
|
||||
sudo apt install -y ${PYTHON_DEP}-pip ${PYTHON_DEP}-venv
|
||||
elif command -v yum &> /dev/null
|
||||
then
|
||||
elif command -v yum &> /dev/null
|
||||
then
|
||||
echo "setup to install CORE using yum"
|
||||
sudo yum install -y ${PYTHON_DEP}-pip
|
||||
else
|
||||
else
|
||||
echo "apt/yum was not found"
|
||||
echo "install python3, pip, venv, pipx, and invoke to run the automated install"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# install tooling for invoke based installation
|
||||
|
|
Loading…
Reference in a new issue