<div dir="ltr">That's certainly possible, bento does exactly this. You would write a setup.py that would like like:<div><br></div><div><div>import setuptools</div><div>from bento.distutils.monkey_patch import monkey_patch</div>
<div>monkey_patch()</div><div>setuptools.setup()</div></div><div><br></div><div>then you can do python setup.py install/build/sdist/etc... without actually using distutils.</div><div><br></div><div>David</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 8:46 AM, Chris Barker <span dir="ltr"><<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Fri, Jul 25, 2014 at 7:21 AM, Daniel Holth <span dir="ltr"><<a href="mailto:dholth@gmail.com" target="_blank">dholth@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>> This kind of thing will require us to implement a flag that tells pip<br>
> "setup.py cannot install; go through wheel" which is somewhere in the<br>
> plans..<br></div></div></blockquote><div><br></div></div><div>couldn't you write a file called "setup.py", with the core API (i.e setup.py build | install), but that called waf instead of distutils to do the actual work?</div>
<div><br></div><div>or does pip doe more than simply call the setup.py script?</div><div><br></div><div>-Chris</div><div class=""><div> </div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
> I don’t think there is any plans to tell pip *not* to use a setup.py and to<br>
> use a Wheel instead. Rather I think the plans are to enable pluggable<br>
> builders so that a sdist 2.0 package doesn’t rely on setup.py and could use<br>
> a waf builder (for instance) plugin.<br>
<br>
</div></div>Just a flag that tells pip it can't use the "install" command and has<br>
to do package -> install package on an sdist.<br>
<div><div>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</div></div></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R <a href="tel:%28206%29%20526-6959" value="+12065266959" target="_blank">(206) 526-6959</a> voice<br>
7600 Sand Point Way NE <a href="tel:%28206%29%20526-6329" value="+12065266329" target="_blank">(206) 526-6329</a> fax<br>
Seattle, WA 98115 <a href="tel:%28206%29%20526-6317" value="+12065266317" target="_blank">(206) 526-6317</a> main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a>
</font></span></div></div>
<br>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div><br></div>