see here in the docs<div><a href="http://www.pip-installer.org/en/latest/logic.html#requirements-file-format">http://www.pip-installer.org/en/latest/logic.html#requirements-file-format</a><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 9:57 AM, Daniel Holth <span dir="ltr"><<a href="mailto:dholth@gmail.com" target="_blank">dholth@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can include many of pip's command line arguments in its<br>
requirements files; try putting --index-url right there, seems to work<br>
on the tip:<br>
<br>
--index-url=someindex<br>
... other requirements<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, May 13, 2013 at 12:48 PM, John Anderson <<a href="mailto:sontek@gmail.com">sontek@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, May 13, 2013 at 6:08 AM, Marcus Smith <<a href="mailto:qwcode@gmail.com">qwcode@gmail.com</a>> wrote:<br>
>><br>
>><br>
>>> If I have a shared dependency between 2 packages but they have pinned<br>
>>> different versions of a 3rd package, is there a way to override this?<br>
>>><br>
>>> Most of the time when people pin a version they are doing it because they<br>
>>> have tested up to that version, but it doesn't always mean they don't work<br>
>>> with a later version.<br>
>>><br>
>>> For example:<br>
>>><br>
>>> P1:<br>
>>>    sqlalchemy==0.7.6<br>
>>><br>
>>> P2:<br>
>>>   sqlalchemy<br>
>>><br>
>>><br>
>>> P3:<br>
>>>    sqlalchemy==0.8<br>
>>><br>
>>><br>
>>><br>
>>> If I want to to override this for all packages and tell them its fine to<br>
>>> just use 0.8.1 and ignore whatever they were pinned at, can I?<br>
>>><br>
>><br>
>> pip requirement files do this.<br>
>> items in the requirement file override found dependency versions.<br>
>> <a href="http://www.pip-installer.org/en/latest/cookbook.html#requirements-files" target="_blank">http://www.pip-installer.org/en/latest/cookbook.html#requirements-files</a><br>
>><br>
>> Marcus<br>
>><br>
><br>
> We use easy_install/setup.py instead of pip requirements files because there<br>
> is no way to configure pip to look at a different index via an application<br>
> configuration file (or at least we couldn't find one).<br>
><br>
> With easy_install we are able to do:<br>
><br>
> [easy_install]<br>
> index_url = <corp index><br>
><br>
> and everything works.   With pip it seems to only support a system wide/user<br>
> wide configuration but not for a specific application/repo.<br>
><br>
><br>
> Thanks for the info though!<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
><br>
</div></div></blockquote></div><br></div>