Re: Accessing extras during install command

Daniel Holth <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CAG8k2+79N=zTUDZ2Go_OUxkT4BQzMte35U=K5KqOfm_W1vBCog@mail.gmail.com>
It was never stored. It would probably not be hard to check whether a
particular extras dependencies were installed by using pkg_resources?

On Tue, Aug 21, 2018, 11:01 Joni Orponen <[email protected]> wrote:

> Hello,
>
> I'd like to run different external programs during the install command
> which are provided by (potentially) installed extras, but I cannot find
> where the currently selected extras are stored.
>
> The only thing I quickly found by going through the distutils and
> setuptools codebases is an old TODO from easy_install indicating it might
> not have been implemented yet:
>
>
> https://github.com/pypa/setuptools/blob/afba2d89c4436451ad4d7e19228584246a9aaadc/setuptools/command/easy_install.py#L1106
>
> I can hack this by try excepting on ImportError, but is there a more
> elegant (and intended) way?
>
> --
> Joni Orponen
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
> Message archived at
> https://mail.python.org/mm3/archives/list/[email protected]/message/Z3LLXCCWWFHNRIHQTVFSHSYEJYNXSVXX/
>

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/mm3/archives/list/[email protected]/message/OOEAJPHQTUHKQ6JNNNEYV6V4IDBM2WOO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.