[Python-ideas] from __pip__ import

אלעזר elazarg at gmail.com
Mon Sep 19 18:46:12 EDT 2016


On Tue, Sep 20, 2016 at 1:40 AM Paul Moore <p.f.moore at gmail.com> wrote:

> On 19 September 2016 at 23:13, אלעזר <elazarg at gmail.com> wrote:
> > Alternative syntax might be that of import decorators
> >
> > @from_pip("attrs")
> > import attr
>
> At which point you may as well just (insert disclaimer about "using
> pip's internal API isn't supported" here, and glossing over the fact
> that pip doesn't yet have an install function with this API) do
>
> import pip
> pip.install('attrs')
> import attr
>

Please forgive me for my ignorance, but it doesn't work as written - what's
the actual method?

Elazar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160919/0335c581/attachment.html>


More information about the Python-ideas mailing list