<div dir="ltr"><div>Hi all,<br></div><div><br></div><div>we&#39;re using an internal devpi server to host our python packages. We find we have to duplicate all our requirements in our tox.ini which can set &quot;indexserver&quot;.</div><div>But we&#39;d like to be able to install locally hosted requirements from a setup.py like this, using dependency_links: </div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">from setuptools import setup<br></font><font face="monospace, monospace">setup(<br></font><font face="monospace, monospace">    name=&#39;dep_links&#39;,<br></font><font face="monospace, monospace">    dependency_links=[&#39;<a href="http://pypi.local/user/index/+simple/&#39;" target="_blank">http://pypi.local/user/index/+simple/&#39;</a>],<br></font><font face="monospace, monospace">    install_requires=[<br></font><font face="monospace, monospace">        &#39;openpyxl-wrapper&#39;,<br></font><font face="monospace, monospace">    ]<br></font><font face="monospace, monospace">)</font></blockquote></div><div><br></div><div>Our index inherits from the public pypi.</div><div><br></div><div>However we get this error message (<a href="https://gist.github.com/tomviner/e925c2878fba31661446" target="_blank">Full output</a>):</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">Installed /home/myuser/.virtualenvs/myvenv/lib/python2.7/site-packages/dep_links-0.0.0-py2.7.egg<br></font><font face="monospace, monospace">Processing dependencies for dep-links==0.0.0<br></font><font face="monospace, monospace">Searching for openpyxl-wrapper<br></font><font face="monospace, monospace">Reading <a href="http://pypi.local/user/index/+simple/" target="_blank">http://pypi.local/user/index/+simple/</a><br></font><font face="monospace, monospace">Reading <a href="https://pypi.python.org/simple/openpyxl-wrapper/" target="_blank">https://pypi.python.org/simple/openpyxl-wrapper/</a><br></font><font face="monospace, monospace">Couldn&#39;t find index page for &#39;openpyxl-wrapper&#39; (maybe misspelled?)<br></font><font face="monospace, monospace">Scanning index of all packages (this may take a while)<br></font><font face="monospace, monospace">Reading <a href="https://pypi.python.org/simple/" target="_blank">https://pypi.python.org/simple/</a><br></font><font face="monospace, monospace">No local packages or download links found for openpyxl-wrapper<br></font><font face="monospace, monospace">error: Could not find suitable distribution for Requirement.parse(&#39;openpyxl-wrapper&#39;)</font></blockquote></div><div><br></div><div>So you can see that our simple index page is reached, but for some reason this link isn&#39;t fetched:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">&lt;a href=&quot;openpyxl-wrapper&quot;&gt;openpyxl-wrapper&lt;/a&gt;&lt;br/&gt;</font></blockquote><div><br></div><div>But the package can be installed using:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">pip install -e . -i http://</font><span style="font-family:monospace,monospace">pypi.local/user/index</span><font face="monospace, monospace">/+simple/</font><br></blockquote><div><br></div><div>and the requirement is installed from the devpi server package without any issue.</div><div><br></div><div>So why can setuptools install from public pypi, but not our devpi server?</div><div><br></div><div>Any ideas appreciated!</div><div><br></div><div>Cheers,</div><div>Tom</div></div>