<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 18, 2015 at 8:24 PM, Vincent Povirk <span dir="ltr"><<a href="mailto:madewokherd@gmail.com" target="_blank">madewokherd@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"><span class="">> But maybe all you really need to do is teach conda to understand pip<br>
> meta-data, and/or make sure that conda write pip-compatible meta data.<br>
<br>
</span>Forgive me, I'm trying to follow as someone who is working with PyPI<br>
but hasn't really used conda or pip. Does a conda environment contain<br>
its own site-packages directory,</blockquote><div><br></div><div>If python was installed by conda, yes.  I get a bit confused here. For one I have only used conda with Anaconda, and Anaconda starts you off with a python environment (for one thing, conda itself is written in Python, so you need that...).</div><div><br></div><div>So if one were to start from scratch with conda, I'm not entirely sure what you would get. but I _think_ you could run conda with some_random_python, then use it to set up a conda environment with it's own python...</div><div><br></div><div>But for the current discussion, yes, a conda environment has it's own site-packages, etc, its own complete python install.</div><div><br></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">and does pip correctly install<br>
packages to that directory?</blockquote><div><br></div><div>yes. it does.</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"> If so, I expect supporting PEP 376 would<br>
help with this.</blockquote><div><br></div><div>yes, I think that would help. though conda is about more-than-python, so it would still need to manage dependency and meta-data its own way. But I would think it could duplicate the effort python packages. But I can't speak for the conda developers.</div><div><br></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">It doesn't help either package manager install dependencies from<br>
outside their repos, it just means that pip will work if the user<br>
installs dependencies from conda first.</blockquote><div><br></div><div>and if we can get vice-versa to work, also -- things would be easier.</div><div> <br></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"> To be able to install<br>
dependencies, either conda needs to know enough about PyPI to find a<br>
package's dependencies itself (and at that point, I wonder how much<br>
value pip adds compared to 'wheel'), </blockquote><div><br></div><div>good point -- and conda does know a fair bit about PyPi already -- there is a </div><br><font face="monospace, monospace">conda-skeleton  pypi<br></font><br>command that goes and looks on pypi fo ra package, and builds a conda build script for it automagically -- and it works without modification much of the time, including dependencies.</div><div class="gmail_quote"><br></div><div class="gmail_quote">So much of the logic is there.</div><div class="gmail_quote"><br></div><div class="gmail_quote">-Chris</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>