Pip Module Broken for pip 1.5

Pip 1.5, released on 1/1/2014, doesn’t support --use-mirrors. The default should be use_mirrors=no, as this should work correctly with all versions. I ran into the issue where we use Ansible to easy_install pip and then use pip to install python libraries.

I created a pull request: https://github.com/ansible/ansible/pull/5493

Changing the default seems like an bad design choice as it may break existing users.

Question:

(A) if they are removing the option, does it ALWAYS use mirrors then?

(B) can we test the pip version and then raise an error if the option is used in a way it cannot support?

The default won’t be supported in new versions. I doubt people will run into this right away, as they already have pip installed, but it will probably become more common as time goes on, so it may make more sense in a future version.

A - Mirroring support was removed in pip 1.5, so it NEVER uses mirrors.B - That’s possible, I’ll update the pull request.

Made a new pull request: https://github.com/ansible/ansible/pull/5494

Hi all,

See what we decided to do here with regards to version checking:

https://github.com/ansible/ansible/commit/191be7b951eb8c34b73b367334e0cb4343af0779

I’ll add the note that this flag is ignored on newer versions of pip.