Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-out optional dependencies/extras #804

Open
smheidrich opened this issue Sep 10, 2024 · 2 comments
Open

Opt-out optional dependencies/extras #804

smheidrich opened this issue Sep 10, 2024 · 2 comments

Comments

@smheidrich
Copy link

smheidrich commented Sep 10, 2024

Introduction

This has already been discussed in other places (see 2nd section) but I couldn't find an issue for it in this repo yet.

Summary

It would be nice if it was possible for package authors to mark an optional dependency as "opt-out", meaning that it gets installed by default, unless the consumer (dependent package or user installing directly via pip) explicitly opts out of it.

Discussions elsewhere

Other ecosystems

Related issues

  • Add support for opportunistic dependencies #214
    • That issue is about implicit/automatic opt-out for packages that e.g. aren't available for the current Python version or platform, while this issue is about explicit opt-out configurable by library dependents.
@henryiii
Copy link
Contributor

Would this make sense at https://github.com/wheel-next/ideas ?

(I'd be a huge fan of these, lots of places I'd use it, but IIRC from the packaging summit a couple of years ago it's pretty hard to add due to back-compat)

@smheidrich
Copy link
Author

Not sure if the question is addressed to me or "the room" 😅 But in any case I don't know 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants