Commits

Doug Hellmann committed 0cf5fc5

fix issue #10 by removing warning and using an error at runtime

  • Participants
  • Parent commits 5551a4a

Comments (0)

Files changed (2)

docsource/history.rst

 Release History
 ===============
 
+1.18
+
+  - Remove warning during installation if sphinxcontrib.paverutils is not installed. (#10)
+
 1.17
 
   - Added documentation updates provided by Steve Steiner.
 try:
     from sphinxcontrib import paverutils
 except:
-    import warnings
-    warnings.warn('sphinxcontrib.paverutils was not found, you will not be able to produce documentation')
+    paverutils = None
 
 # What project are we building?
 PROJECT = 'virtualenvwrapper'
 
 @task
 def html(options):
+    if paverutils is None:
+        raise RuntimeError('Building HTML documentation requires the sphinxcontrib.paverutils package')
     # Build the docs
     paverutils.html(options)
     # Move them into place for packaging
 def website(options):
     """Create local copy of website files.
     """
+    if paverutils is None:
+        raise RuntimeError('Building the website requires the sphinxcontrib.paverutils package')
     # Make sure the base template is updated
     dest = path(options.website.template_dest).expanduser()
     src = path(options.website.template_source).expanduser()