Specify extras_require with pip install -e
This should work, per example #6
For remote repos:
pip install -e git+https://github.com/user/project.git#egg=project[extra]
And this for local ones (thanks to @Kurt-Bourbaki):
pip install -e .[extra]
Important to notice: you should not have whitespaces around or within brackets. I.e. this won't work: -e ". [extra1, extra2]"
- and even as a row in requirements.txt file, where it is not so obvious. The worst thing about it is that when you have whitespace, extras are just silently ignored.