call the correct interpreter under virtualenv
I used sphinx for the first time today and "make html" failed because sphinx was not able to import my modules (virtualenv was active). It's because of a hardcoded python interpreter path:
$ head -n1 /usr/bin/sphinx-build #!/usr/bin/python
Why hardcode the path? Simply use this instead:
and the issue is gone - sphinx is now able to find modules even under virtualenv out of the box.
Tested on Fedora 20 with python-sphinx-1.1.3-8.fc20.noarch.