OpenC3/cosmos

View on GitHub
openc3/bin/pipinstall

Summary

Maintainability
Test Coverage
#!/bin/sh
python3 -m venv $PYTHONUSERBASE
source $PYTHONUSERBASE/bin/activate
echo "pip3 install $@"
pip3 install "$@"
if [ $? -eq 0 ]; then
    echo "Command succeeded"
else
    echo "Command failed - retrying with --no-index"
    pip3 install --no-index "$@"
    if [ $? -eq 0 ]; then
        echo "ERROR: pip install failed"
    fi
fi