How to make virtualenv to use the last version of distribute by default?

pip, python, virtualenv

Solution

There was a similar question about updating pip on the python-virtualenv list. I've repeated here for convenience:

If you are using a recent virtualenv you can also use `--extra-search-dir` option to point to an alternate directory containing the `distribute` package you wish to install. This is documented here:

http://www.virtualenv.org/en/latest/index.html#the-extra-search-dir-option

User-provided extra-search-dir paths have precedence over the "builtin" search paths, so you should be able to achieve what you want

Problem

I often use virtualenv to keep right version of dependancies installed for a project. ``` virtualenv apps --distribute ``` The problem is that when using that, virtualenv keep installing distribute==0.6.19 I need each time to run first : ``` pip install distribute -U ``` Why is that and how can I make it install directly the right version of distribute ? Thank you.

Original source