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

Have --python auto be the default behavior #438

Open
kemzeb opened this issue Jan 1, 2025 · 0 comments
Open

Have --python auto be the default behavior #438

kemzeb opened this issue Jan 1, 2025 · 0 comments
Labels
breaking This change would be considered a breaking change enhancement

Comments

@kemzeb
Copy link
Collaborator

kemzeb commented Jan 1, 2025

Describe the feature

This request is based on the discussion made here.

There has been confusion about how the --python option works in the past, which was why --python auto was introduced. It works by using the user's environment to get the path to the interpreter they expect to use.

The proposal is to make this behavior the default. It would be a breaking change since we currently use whatever environment pipdeptree is run in by default. I could imagine another option being introduced like --fail-when-venv-not-found for users who don't want to get the dependency tree of the environment where pipdeptree is installed (in case we don't find any other interpreter).

I believe we should take special care looking into the existing implementation to ensure it is robust enough before making it default behavior.

@kemzeb kemzeb added enhancement breaking This change would be considered a breaking change labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This change would be considered a breaking change enhancement
Projects
None yet
Development

No branches or pull requests

1 participant