-
-
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
Fix normalization during install #3007
Conversation
- Fixes #2998 Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
…penv into fix-normalization-during-install
Just tested and this correctly installs the |
Holy moly! So much headache about quoting and unquoting, and all because 12e80ed#diff-ec74dda0078733c5b6755671cacf1de5R1424 This is the culprit IMHO, after all it's the library that should handle command execution. Instead arbitrary argument quoting snippets are found here and there all over pipenv. |
Not entirely accurate. We do proper splitting in various other libraries and are still forced to contend with this. |
@techalchemy why do you need to do extra splitting? I mean you need to do some splitting to handle requirements.txt lines, but other than that passing commands around as lists of verbatim (without any quoting) arguments should be enough, no? |
What if a path has a space in it? What if that happens on windows? What if both of those are true and the user is using nave path separators (that is, |
The short answer is that normally command line quoting should be handled by standard libraries.
On windows,
It depends on what do you want to do with it. If you want to pass it forward, then again
will just work™. If you want to handle it within pipenv, w.r.t. native/non-native path separators, it's a bit of a mess, but something along the lines of of
Same as above. But like you say, apparently the problems pipenv is experiencing with quoting are related to
|
Escape command line requirements as necessary