1. Doug Hellmann
  2. virtualenvwrapper


Doug Hellmann  committed 0cf5fc5

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

  • Participants
  • Parent commits 5551a4a
  • Branches master

Comments (0)

Files changed (2)

File docsource/history.rst

View file
  • Ignore whitespace
 Release History
+  - Remove warning during installation if sphinxcontrib.paverutils is not installed. (#10)
   - Added documentation updates provided by Steve Steiner.

File pavement.py

View file
  • Ignore whitespace
     from sphinxcontrib import paverutils
-    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'
 def html(options):
+    if paverutils is None:
+        raise RuntimeError('Building HTML documentation requires the sphinxcontrib.paverutils package')
     # Build the docs
     # 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()