Setuptools does not use ~/.pip/pip.conf global.index-url
<p>I have a local pip mirror so I have this particular pip config in my home directory:</p>

<pre><code>[global]
index=file:///somewhere/python/pypi_mirror/simple
</code></pre>

<p>When I do <code>pip install module</code> the dependencies are correctly fetched from the local mirror. </p>

<p>However, when I install a package using the command line: </p>

<pre><code>python setup.py install
</code></pre>

<p>Python tries to fetch the dependencies from pip.org, not from my local mirror. </p>

<p>Why?</p>

<p>Notice the issue also appear with <code>PIP_INDEX_URL</code>: </p>

<pre><code>export PIP_INDES_URL=http://you_failure
python setup.py install
...
Searching for xmltodict
Reading https://pypi.python.org/simple/xmltodict/
...
</code></pre>

<p>Am I doing something wrong?</p>