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
5
setup.sh
5
setup.sh
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# install pre-reqs using yum/apt
|
|
||||||
PYTHON="${PYTHON:=python3}"
|
PYTHON="${PYTHON:=python3}"
|
||||||
PYTHON_DEP="${PYTHON_DEP:=python3}"
|
PYTHON_DEP="${PYTHON_DEP:=python3}"
|
||||||
|
|
||||||
|
# install pre-reqs using yum/apt
|
||||||
|
if [ -z "${NO_PYTHON}" ]; then
|
||||||
if command -v apt &> /dev/null
|
if command -v apt &> /dev/null
|
||||||
then
|
then
|
||||||
echo "setup to install CORE using apt"
|
echo "setup to install CORE using apt"
|
||||||
|
@ -16,6 +18,7 @@ else
|
||||||
echo "install python3, pip, venv, pipx, and invoke to run the automated install"
|
echo "install python3, pip, venv, pipx, and invoke to run the automated install"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# install tooling for invoke based installation
|
# install tooling for invoke based installation
|
||||||
${PYTHON} -m pip install --user pipx==0.16.4
|
${PYTHON} -m pip install --user pipx==0.16.4
|
||||||
|
|
Loading…
Reference in a new issue