django / channels

Developer-friendly asynchrony for Django
https://channels.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.02k stars 793 forks source link

Fix install command #2016

Closed adamchainz closed 1 year ago

adamchainz commented 1 year ago

Using quotes within the square brackets fails with:

$ python -m pip install -U 'channels["daphne"]'
ERROR: Exception:
   ...
pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'["daphne'": Expected string_end

The quotes need only be around the whole reference, channels[daphne], for shell escaping.

adamchainz commented 1 year ago

Ah right, it is a Zsh thing, didn't realize that works on Bash.

carltongibson commented 1 year ago

On Bash you don't need the quotes at all, so it's only Apple switching here that has this come up... anyhooo... 😜

Thanks for the fix.