by kibwen · 3y ago · 0 comments
I thought this was the expected behavior of --extra-index-url
To force pip to use a user-specified registry, you would use --index-url instead of --extra-index-url
If PyPI used Java-like scheme with domain ownership verification, Google would presumably use com.google.* namespace for their private stuff and it wouldn’t be possible to introduce malicious package this way.
So the described issue arguably is a consequence of that.
That there is no other option for private repositories or namespacing is still a big shame.