Merge branch 'develop' of https://github.com/coreemu/core into develop
This commit is contained in:
commit
4b2d33c898
1 changed files with 16 additions and 13 deletions
29
setup.sh
29
setup.sh
|
@ -1,20 +1,23 @@
|
||||||
#!/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}"
|
||||||
if command -v apt &> /dev/null
|
|
||||||
then
|
# install pre-reqs using yum/apt
|
||||||
echo "setup to install CORE using apt"
|
if [ -z "${NO_SYSTEM}" ]; then
|
||||||
sudo apt install -y ${PYTHON_DEP}-pip ${PYTHON_DEP}-venv
|
if command -v apt &> /dev/null
|
||||||
elif command -v yum &> /dev/null
|
then
|
||||||
then
|
echo "setup to install CORE using apt"
|
||||||
echo "setup to install CORE using yum"
|
sudo apt install -y ${PYTHON_DEP}-pip ${PYTHON_DEP}-venv
|
||||||
sudo yum install -y ${PYTHON_DEP}-pip
|
elif command -v yum &> /dev/null
|
||||||
else
|
then
|
||||||
echo "apt/yum was not found"
|
echo "setup to install CORE using yum"
|
||||||
echo "install python3, pip, venv, pipx, and invoke to run the automated install"
|
sudo yum install -y ${PYTHON_DEP}-pip
|
||||||
exit 1
|
else
|
||||||
|
echo "apt/yum was not found"
|
||||||
|
echo "install python3, pip, venv, pipx, and invoke to run the automated install"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install tooling for invoke based installation
|
# install tooling for invoke based installation
|
||||||
|
|
Loading…
Reference in a new issue