On 2020 Feb 29, at 02:00, Jonatan Palsson <jonata...@gmail.com> wrote: > I would like to change the behavior, so that the entry point is *not > installed* if the extra dependencies are not available (and perhaps > also show a warning, indicating that this entry point has not been > installed).
I don't believe this is possible. Achieving this new behavior would, at a minimum, require changes to pip (and possibly also to the entry points format in order to indicate which behavior is desired). As associating extras with entry points is currently considered deprecated to begin with, I doubt you'd have much luck convincing the pip maintainers to add such a feature. The closest way to get the behavior you want would be to split off the CLI-specific code from your project into a separate project, and have this new project install the entry point while always depending on the first project and the "CLI" extras. -- John Wodder -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/ZVEIOTED6VBSMWRBXQWJHMWH6O6NCLXJ/