If you use
install_requires = ['mypackage==dev']
in your requirements, running any installed console scripts triggers the following exception ... some debugging shows that it finds the suitable package but decides that ==dev is part of the package name and considers them not the same!
Traceback (most recent call last): File "/home/hatem/.virtualenvs/masterpackage/bin/somecommand", line 5, in <module> from pkg_resources import load_entry_point File "/home/hatem/.virtualenvs/masterpackage/local/lib/python2.7/site-packages/distribute-0.6.31-py2.7.egg/pkg_resources.py", line 2833, in <module> parse_requirements(__requires__), Environment() File "/home/hatem/.virtualenvs/masterpackage/local/lib/python2.7/site-packages/distribute-0.6.31-py2.7.egg/pkg_resources.py", line 604, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: mypackage==dev
to recreate this bug, follow these steps
virtualenv ~/.virtualenvs/samplepackage source ~/.virtualenvs/samplepackage/bin/activate pip install hg+https://bitbucket.org/nassrat/samplepackage somescript # if you installed it with -e, you can even try "python setup.py test"