[Distutils] How to implement ‘setup.py’ functionality that itself needs third-party distributions

Daniel Holth dholth at gmail.com
Wed Jan 21 04:50:06 CET 2015


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.
On Jan 20, 2015 10:27 PM, "Ben Finney" <ben+python at benfinney.id.au> wrote:

> Carl Meyer <carl at oddbird.net> writes:
>
> > On 01/20/2015 07:28 PM, Ben Finney wrote:
> > > What I need is a way to express “ensure Docutils is installed before
> > > continuing with other Setuptools actions” in ‘setup.py’. I don't
> > > know of a neat way to tell Setuptools that.
> >
> > That is the precise purpose of the `setup_requires` kwarg.
>
> That's too late though. What I need is to be able to instruct the build
> process to install Docutils so I can get stuff done *before ‘setup()’ is
> called*.
>
> Is there an API within Distutils or Setuptools that allows me to say “I
> haven't declared anything yet but go get and install distribution FOO
> right now”? I could do that before importing the module which needs
> Docutils.
>
> --
>  \           “The long-term solution to mountains of waste is not more |
>   `\      landfill sites but fewer shopping centres.” —Clive Hamilton, |
> _o__)                                                _Affluenza_, 2005 |
> Ben Finney
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150120/27c7d27e/attachment.html>


More information about the Distutils-SIG mailing list