-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Ensure we always respect --site-packages #3836
Conversation
- Sometimes we fail to respect `--site-packages` when it is passed with `--install` - This resolves that and ensures we always pass it to `ensure_project` - Fixes #3718 Signed-off-by: Dan Ryan <[email protected]>
As far as I understand venv is ensured to be created if Lines 198 to 206 in 065ebdb
I suggest not add duplicate codes in subcommand parser if the parent already handled this. If it isn't working that should be a problem |
I remember I submitted a patch to fix the issue of options passing from parent to subcommand: 3f053a3 Let's waiting for user feedback about whether it is still an issue. |
This only works if you specifically place the
As a user I tried to test out the functionality to confirm whether it still exists for the purposes of triaging the specified issue (#3718) but I couldn't because it passed |
I thought it works because I remember I can do So |
We can't allow options in arbitrary positions, not if we are going to use the argument parser the way we are using it (i.e. allowing The reason is that we parse I started looking into this specific issue because I was confused about the fact that I couldn't see |
In my mind the question is more about what else we are neglecting to parse in subcommands or what other user experience stumbling blocks there are |
Thanks for the explanation, so the main difference between |
well you can't really enable site packages while you're removing things, from a user experience standpoint that doesn't make that much sense |
Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
Ensure we always respect --site-packages
--site-packages
when it is passed with--install
ensure_project