File docu_build.patch of Package python-django-dajaxice
Index: django-dajaxice-0.7/docs/conf.py
===================================================================
--- django-dajaxice-0.7.orig/docs/conf.py
+++ django-dajaxice-0.7/docs/conf.py
@@ -47,18 +47,7 @@ copyright = u'2012, Jorge Bastida'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-import pkg_resources
-try:
- release = pkg_resources.get_distribution('django-dajaxice').version
-except pkg_resources.DistributionNotFound:
- print 'To build the documentation, The distribution information of django-dajaxice'
- print 'Has to be available. Either install the package into your'
- print 'development environment or run "setup.py develop" to setup the'
- print 'metadata. A virtualenv is recommended!'
- sys.exit(1)
-del pkg_resources
-
-version = '.'.join(release.split('.')[:2])
+version = '0.7'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.