Multiple retries when running pip.
Retry a failing "pip" command with successively longer timeouts. This reduces the risk but doesn't guarantee that gitlab builds won't time out. Not all the "pip" invocations are replaced with the retry wrapper. Add more if needed. Note that all failures are retried, not just timeouts. That is a cosmetic issue only.