pypa/virtualenv — Issue #181: Option --extra-search-dir only works for pip
Author: omansion
Created: 2011-11-04 17:46:34+00:00
State: open

Hi,

I was planning to use the option *--extra-search-dir* to be able to install a newer version of distribute in new virtualenvs, but it seems that this option only works for *pip* (the versions of *setuptools* and *distribute* located in *virtualenv_support* are always used).

```
$ ls packages
distribute-0.6.24.tar.gz	pip-1.0.2.tar.gz	setuptools-0.6c11-py2.4.egg	setuptools-0.6c11-py2.5.egg	setuptools-0.6c11-py2.6.egg	setuptools-0.6c11-py2.7.egg

$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv --extra-search-dir=packages --never-download -v --distribute env
Creating env/lib/python2.7
[...]
Using existing distribute egg: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv_support/distribute-0.6.19.tar.gz
[...]
Installing existing pip-1.0.2.tar.gz distribution: packages/pip-1.0.2.tar.gz
[...]
```

Thanks!