<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 6:08 AM, Marcus Smith <span dir="ltr"><<a href="mailto:qwcode@gmail.com" target="_blank">qwcode@gmail.com</a>></span> wrote:<br>
<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"><br><div class="gmail_quote"><div><div class="h5"><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">
<div dir="ltr">If I have a shared dependency between 2 packages but they have pinned different versions of a 3rd package, is there a way to override this?<div>
<br></div><div>Most of the time when people pin a version they are doing it because they have tested up to that version, but it doesn't always mean they don't work with a later version.</div>
<div><br></div><div>For example:</div><div><br></div><div>P1:</div><div>   sqlalchemy==0.7.6</div><div><br></div><div>P2:</div><div>  sqlalchemy</div><div><br></div><div>
<br></div><div>P3:</div><div>   sqlalchemy==0.8</div><div><br></div><div><br></div><div><br></div><div>If I want to to override this for all packages and tell them its fine to just use 0.8.1 and ignore whatever they were pinned at, can I?</div>


<div><br></div></div></blockquote><div><br></div></div></div><div>pip requirement files do this.  </div><div>items in the requirement file override found dependency versions.<div><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></div>
<span class=""><font color="#888888">
</font></span></div><span class=""><font color="#888888"><div><br></div><div>Marcus</div><div><br></div></font></span></div></blockquote><div><br></div><div style>We use easy_install/setup.py instead of pip requirements files because there is no way to configure pip to look at a different index via an application configuration file (or at least we couldn't find one).</div>
<div style><br></div><div style>With easy_install we are able to do:</div><div style> </div><div><div>[easy_install]</div><div>index_url = <corp index></div></div><div><br></div><div>and everything works.   With pip it seems to only support a system wide/user wide configuration but not for a specific application/repo.</div>
<div><br></div><div><br></div><div>Thanks for the info though!</div><div><br></div></div></div></div>