<div dir="ltr">On Sun, May 17, 2015 at 12:05 AM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">> % pip install --upgrade pip<br>
> % pip install some_conda_package<br>
<br>
</span>This gets the respective role of the two tools reversed - it's like my<br>
asking for "pip install some_fedora_rpm" to be made to work.<br></blockquote><div><br></div><div>I agree here -- I was thinking there was some promise in a conda_package_to_wheel converter though. It would, of course, only work in a subset of conda packages, but would be nice.<br></div><div><br></div><div>The trick is that conda packages for the hard-to-build python packages (the ones we care about) often (always?) depend on conda packages for dynamic libs, and pip+wheel have no support for that.<br></div><div><br></div><div>And this is a trick, because while I have some ideas for supporting just-for-python dynamic libs, conda's are not just-for-python -- so that might be hard to mash together.<br><br></div><div>Continuum has a bunch of smart people, though.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
However, having conda use "pip install" in its build scripts so that<br>
it reliably generates pip compatible installation metadata would be a<br>
possibility worth discussing - that's what we've started doing in<br>
Fedora, so that runtime utilities like pkg_resources can work<br>
correctly.<br></blockquote><div><br></div><div>Hmm -- that's something ot look into -- you can put essentially anything into a conda bulid script -- so this would be a matter of convention, rather than tooling. (of course the conventions used by Continuum for the "offical" conda packages is the standard).<br><br></div><div>But I'm confused as to the roles of pip vs setuptools, vs wheel, vs ???<br><br></div><div>I see pip has handling the dependency resolution, and finding and downloading of packages part of the problem -- conda does those already.<br><br></div><div>So what would using pip inside a conda build script buy you that using setuptools does not?<br><br></div><div>And would this be the right incantation to put in a build script:<br><br></div><div>pip install --no-deps ./<br><br></div><div>(if you are in the package's main dir -- next to setup.py)<br><br></div><div>-Chris<br><br></div><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>