pypa/pip — pull request #500 by nickstenning (2012-04-01 21:51:15+00:00)
Title: Add support for specifying extras with local editable paths

At the moment, you can only specify extras with `--editable` with remote (or rather version-controlled) URLs. This small patch adds support for specifying extras even for local paths, i.e. with this patch

```pip install -e .[test]```

functions similarly to

```pip install -e file://$(pwd)#egg=eggname[test]```

with the exception that `pwd` needn't actually be under version control. Obviously there is an edge case here that doesn't exist with the URLs, namely this patch will make it much more difficult to install from a directory literally named "bar[foo]", but this is still possible with `pip install -e file:///path/to/bar[foo]#egg=bar`.

I'd be very happy if you thought this was worth merging =).