On Sat, Jan 17, 2015 at 10:48 AM, John ZuHone <jzuhone@gmail.com> wrote:
Hi dev,

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. 


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:

http://blog.miguelgrinberg.com/post/the-package-dependency-blues

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.
 

John

_______________________________________________
yt-dev mailing list
yt-dev@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org