problem installing django-storages

The guys who maintain the awesome django-storages seem hell bent on forcing you to support mercurial.  That’s all well and good, but it screws up the install.  So if you’ve tried running setup.py and gotten the exception about mercurial.error not being found, just make the installer version control agnostic it’s easy, and will make you feel better.

open setup.py and comment out this line:

setup_requires=['setuptools_hg'],

If you’ve tried installing and already got the error, you’ll also have to delete the file setuptools tried to install as a prerequisite

rm -f setuptools_hg-0.1.5-py2.5.egg

Wow that was simple.  Now you can just run sudo python setup.py install and all will be good.


Leave a Reply