[yt-dev] pip requirements

Nathan Goldbaum nathan12343 at gmail.com
Sat Jan 17 12:58:31 PST 2015


On Sat, Jan 17, 2015 at 10:48 AM, John ZuHone <jzuhone at 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.
>
> https://pip.pypa.io/en/latest/user_guide.html#requirements-files
>

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 at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20150117/fdc8e5a4/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-dev mailing list
yt-dev at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org


More information about the yt-dev mailing list