<p dir="ltr">Just use my script. Once new-metadata has been standardized pip itself will know how to install build (setup) requirements and the script will be obsolete. Until then I think you will find it works.</p>
<div class="gmail_quote">On Jan 20, 2015 10:27 PM, "Ben Finney" <<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Carl Meyer <<a href="mailto:carl@oddbird.net">carl@oddbird.net</a>> writes:<br>
<br>
> On 01/20/2015 07:28 PM, Ben Finney wrote:<br>
> > What I need is a way to express “ensure Docutils is installed before<br>
> > continuing with other Setuptools actions” in ‘setup.py’. I don't<br>
> > know of a neat way to tell Setuptools that.<br>
><br>
> That is the precise purpose of the `setup_requires` kwarg.<br>
<br>
That's too late though. What I need is to be able to instruct the build<br>
process to install Docutils so I can get stuff done *before ‘setup()’ is<br>
called*.<br>
<br>
Is there an API within Distutils or Setuptools that allows me to say “I<br>
haven't declared anything yet but go get and install distribution FOO<br>
right now”? I could do that before importing the module which needs<br>
Docutils.<br>
<br>
--<br>
\ “The long-term solution to mountains of waste is not more |<br>
`\ landfill sites but fewer shopping centres.” —Clive Hamilton, |<br>
_o__) _Affluenza_, 2005 |<br>
Ben Finney<br>
<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>
</blockquote></div>