<div dir="ltr">On Fri, Oct 2, 2015 at 3:37 PM, Erik Bray <span dir="ltr"><<a href="mailto:erik.m.bray@gmail.com" target="_blank">erik.m.bray@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Oct 2, 2015 at 5:39 PM, Donald Stufft <<a href="mailto:donald@stufft.io">donald@stufft.io</a>> wrote:<br>
> ``pip install path/to/directory/with/<a href="http://setup.py/in/it/``" rel="noreferrer" target="_blank">setup.py/in/it/``</a><br>
<br>
</span>In particular I install most of my packages from source these days by<br>
cd'ing into the source and<br>
<br>
$ pip install .<br>
<br>
That's all it takes.  Works with -e too.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>yup -- plugged this into a conda recipe and it works fine.<br><br></div><div>in fact, I'm going to try to do all of my python recipes that way.<br><br></div><div>Actually:<br><br></div><div>$PYTHON -m pip install ./<br><br></div><div>$PYTHON is the python in conda's current build environment -- this will assure it used the right pip.<br><br></div><div>Thanks all, this is working great.<br><br></div><div>-CHB<br><br></div><div><br><br><br><br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Erik<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On October 2, 2015 at 5:38:29 PM, Chris Barker (<a href="mailto:chris.barker@noaa.gov">chris.barker@noaa.gov</a>) wrote:<br>
>> I can't seem to find a way to pip install from a source dir -- not a<br>
>> tarball.<br>
>><br>
>> Why would I want to do that?<br>
>><br>
>> In this case, it's because I'm trying to build conda packages for python<br>
>> packages that have compiled C code, and are not using setuptools.<br>
>><br>
>> On Windows, you need to use setuptools in order to use the "MS compiler for<br>
>> Python 2.7". So a straight "setup.py build" fails.<br>
>><br>
>> But pip injects setuptools, so that "pip install" does work. But conda has<br>
>> already unpacked the source distribution, so I'd like to point pip at that,<br>
>> and can't find a way to do that (I could have sworn it was possible...)<br>
>><br>
>> Do I have to build an sdist, and then point pip at that??<br>
>><br>
>> -CHB<br>
>><br>
>><br>
>><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <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>