<div dir="ltr">Thanks Rob!<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 17, 2015 at 7:36 PM, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 18 December 2015 at 06:13, Carlos Barera <span dir="ltr"><<a href="mailto:carlos.barera@gmail.com" target="_blank">carlos.barera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm using install_requires in setup.py to specify a specific package my project is dependant on.</div><div style="font-size:12.8px">When running python setup.py install, apparently the simple index is used as an older package is taken from pypi. While </div></span></div></blockquote><div><br></div></span><div>What's happening here is that easy-install is triggering - which does not support wheels. Use 'pip install .' instead.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><div style="font-size:12.8px">in <a href="https://pypi.python.org/pypi" target="_blank">https://pypi.python.org/pypi</a>, there's a newer package.</div><div style="font-size:12.8px">When installing directly using pip, the latest package is installed successfully.</div></span><div style="font-size:12.8px">I noticed that the new package is only available as a wheel and older versions of setup tools won't install wheels for install_requires.</div><div style="font-size:12.8px">However, upgrading setuptools didn't help.</div><span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Several questions:</div><div style="font-size:12.8px">1. What's the difference between the pypi simple index and the general pypi index?</div></span></div></blockquote><div><br></div></span><div>The '/simple' API is for machine consumption, /pypi is for humans, other than that there should be not be any difference.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><div style="font-size:12.8px">2. Why is setup.py defaulting to the simple index? </div></span></div></blockquote><div><br></div></span><div>Because it is the only index :). <br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><div style="font-size:12.8px">3. How can I make the setup.py triggered install use the main pypi index instead of simple</div></span></div></blockquote><div><br></div></span><div>You can't - the issue is not the index being consulted, but your use of 'python setup.py install' which does not support wheels.<br></div><div> <br></div><div>Cheers,<br></div><div>Rob<br></div></div></div></div>
</blockquote></div><br></div>