Nothing. Just do not put the option - let pip install -r test-infra/requirements.txt
Today there are no mirrors from the original PyPi Store - I suppose the improvement in scalability of networked systems has eliminated this over the past few years.
You can instead configure PIP to search for packages on other pipy-compatible systems - and many organizations / companies establish their private repositories. But the parameters for this are other, and the purpose is different from what would have been user mirrors in the past.
Now a related aspect, but that's not what you asked: you should not use PIP in conjunction with sudo
on any Linux distribution. It turns out that the way that PIP does not run the files it installs and downloads next to the file manager of your Linux (either apt-get in the derivatives of debian, or dnf in fedora and RedHat, or any other): then when you go update Python packages by the Linux manager - and this happens naturally in the maintenance of your system, there will be conflict of these files.
In short - the habit of using sudo pip install ...
potentially, emuito probably will ruin your Linux!
The PIP should be used in local Python project environments, created with the virtualenv command - see here: link (but of course, contrary to what they teach on this page, install your virtualenv on Linux with sudo apt-get install python-virtualenv
or the equivalent Linux command - not with pip)