<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 10:48 AM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@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"><div style="word-wrap:break-word">Hi dev,<div><br></div><div>Should we have a requirements.txt file for pip? Currently we require users who install via pip to have the required packages set up already (numpy, sympy, h5py, etc.), but if we had a requirements file then it would pick these up automatically if they weren’t already there. </div><div><br></div><div><a href="https://pip.pypa.io/en/latest/user_guide.html#requirements-files" target="_blank">https://pip.pypa.io/en/latest/user_guide.html#requirements-files</a></div></div></blockquote><div><br></div><div>I think we should specify only "loose" dependencies via install_requires. Requirements files are more usefull for "strict" dependencies, e.g. when building a web app based on libraries that don't guarantee API stability.  See e.g. this blog post:</div><div><br></div><div><a href="http://blog.miguelgrinberg.com/post/the-package-dependency-blues">http://blog.miguelgrinberg.com/post/the-package-dependency-blues</a><br></div><div><br></div><div>I believe there's magic to get pip to automatically download dependencies based on install_requires whenever setup.py is invoked, but I could never figure out how to get it to work when I experimented with this in the past.  This also doesn't necessarily do much for us, since our dependencies in turn depend on C libraries that we have no way to install from within pip.</div><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"><div style="word-wrap:break-word"><span class=""><font color="#888888"><div><br></div><div>John</div></font></span></div><br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br></div></div>