File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22Release History
33===============
44
5+ 1.18
6+
7+ - Remove warning during installation if sphinxcontrib.paverutils is not installed. (#10)
8+
591.17
610
711 - Added documentation updates provided by Steve Steiner.
Original file line number Diff line number Diff line change 2323try :
2424 from sphinxcontrib import paverutils
2525except :
26- import warnings
27- warnings .warn ('sphinxcontrib.paverutils was not found, you will not be able to produce documentation' )
26+ paverutils = None
2827
2928# What project are we building?
3029PROJECT = 'virtualenvwrapper'
122121
123122@task
124123def html (options ):
124+ if paverutils is None :
125+ raise RuntimeError ('Building HTML documentation requires the sphinxcontrib.paverutils package' )
125126 # Build the docs
126127 paverutils .html (options )
127128 # Move them into place for packaging
@@ -135,6 +136,8 @@ def html(options):
135136def website (options ):
136137 """Create local copy of website files.
137138 """
139+ if paverutils is None :
140+ raise RuntimeError ('Building the website requires the sphinxcontrib.paverutils package' )
138141 # Make sure the base template is updated
139142 dest = path (options .website .template_dest ).expanduser ()
140143 src = path (options .website .template_source ).expanduser ()
You can’t perform that action at this time.
0 commit comments