Allow install as root on minimal attack surface OSes (#2871)

pip is not accessible to root on many limited core OS distros. Launching explicitly via python resolves for all
This commit is contained in:
Dave Johnson 2021-04-27 01:24:24 -07:00 committed by GitHub
parent c75b826808
commit a2401ccfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,12 +101,12 @@ fi
# shellcheck disable=SC1091
. ./activate
# pip 20.x+ supports Linux binary wheels
pip install --upgrade pip
pip install wheel
python -m pip install --upgrade pip
python -m pip install wheel
#if [ "$INSTALL_PYTHON_VERSION" = "3.8" ]; then
# This remains in case there is a diversion of binary wheels
pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.1
pip install -e . --extra-index-url https://pypi.chia.net/simple/
python -m pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.1
python -m pip install -e . --extra-index-url https://pypi.chia.net/simple/
echo ""
echo "Chia blockchain install.sh complete."