-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fixed file paths with spaces causing pip to choke on *nix systems #611
Conversation
d33e617
to
1682ed6
Compare
How has this bug from 2011 been allowed to persist for so long? I have lost hours debugging this on Mac OS X |
Any updates on this please? I still have the problem :( |
Sadly I don't think they have any intention of merging this or fixing the problem. |
I'm not a Unix user but my understanding is that not all Unix systems support the sort of quoting you're doing. (This has been debated at length on at least one other PR). If this PR is to have any chance (and it won't be me that commits it - as I say I don't have the Unix knowledge) it'll need to be confirmed as a correct fix on various Unix systems |
Hmm, maybe, I'll have to go hunt that down. All I'm doing is escaping the space with a backslash. That should be supported by all the major shells (sh, bash, and zsh for sure). |
Shebang lines are supported by the kernel, not by the shell. And the kernel can be pretty simple. I believe there is one Unix flavour that insists on hash, bang, no more than 32 arbitrary characters, newline. And then uses the characters between As I say, my knowledge is limited, so I wouldn't take the above as guaranteed - but I believe that's the gist of the problem (basically it's insoluble in a platform-independent way). |
Oh awesome, I had no idea that was handled that far down the stack. Thank you for taking the time to type that up, that was incredibly informative! |
Thanks for answers! Any of you know a workaround to get this fixed? I really need to use pip with virtualenv in a directory with whitespace. |
@ludovicriffault You can probably hand-edit the shebang line on the scripts to a form that your local system handles - it's not ideal but it should work. |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow virtualenv has switched to doing development on the If you do nothing, this Pull Request will be automatically migrated by @BrownTruck for you. If you would like to retain control over this pull request then you should resubmit it against the If you choose to migrate this Pull Request yourself, here is an example message that you can copy and paste:
If this pull request is no longer needed, please feel free to close it. |
This Pull Request has been automatically migrated to #910 to reparent it to the |
Spaces in the file path causes virtualenv pip to choke. I added a bit to re-write the shebang if the system is not windows, and the path contains a space. I basically just modified the "fixup_scripts" function.
Tested locally, seems to work pretty well :)