<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 21, 2015 at 7:27 PM, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</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="">> I guess I wasn't clear -- the idea was to force myself to use pip install,<br>
> rather than ever doing a plain<br>
><br>
> setup.py install or<br>
> setup.py develop<br>
><br>
> so:<br>
>  pip install ./<br>
> or<br>
>  pip install -e ./<br>
><br>
> this way, pip will inject the parts of setuptools I really need, but<br>
> hopefully not any other cruft.<br>
<br>
</span>Its precisely the same as doing<br>
<br>
"""<br>
import setuptools<br>
from distutils import setup<br>
<br>
...<br>
setup()<br>
<br>
"""<br>
<br>
Except that other people may still run setup.py directly, and then<br>
you'll be picking up the pieces :).</blockquote><div><br></div><div>exactly! That is the point -- pip simply injects the full-on setuptools, but it calls it in specific ways -- i.e.  <span style="color:rgb(80,0,80);font-size:12.8px">--single-version-externally-</span><span style="color:rgb(80,0,80);font-size:12.8px">managed and all that.</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><font color="#500050"><span style="font-size:12.8px">But, you also wouldn't get things like setuptools find_packages and the like -- though I"m not sure I've ever liked that...</span></font></div><div><font color="#500050"><span style="font-size:12.8px"><br></span></font></div><div><font color="#500050"><span style="font-size:12.8px">The trick is to make it clear to your users that this particular setup.py is not expected to work right unless run from pip....</span></font></div><div><br></div><div><font color="#500050"><span style="font-size:12.8px">- CHB</span></font></div><div><font color="#500050"><span style="font-size:12.8px"><br></span></font></div></div><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>