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 2
2
Release History
3
3
===============
4
4
5
+ 1.18
6
+
7
+ - Remove warning during installation if sphinxcontrib.paverutils is not installed. (#10)
8
+
5
9
1.17
6
10
7
11
- Added documentation updates provided by Steve Steiner.
Original file line number Diff line number Diff line change 23
23
try :
24
24
from sphinxcontrib import paverutils
25
25
except :
26
- import warnings
27
- warnings .warn ('sphinxcontrib.paverutils was not found, you will not be able to produce documentation' )
26
+ paverutils = None
28
27
29
28
# What project are we building?
30
29
PROJECT = 'virtualenvwrapper'
122
121
123
122
@task
124
123
def html (options ):
124
+ if paverutils is None :
125
+ raise RuntimeError ('Building HTML documentation requires the sphinxcontrib.paverutils package' )
125
126
# Build the docs
126
127
paverutils .html (options )
127
128
# Move them into place for packaging
@@ -135,6 +136,8 @@ def html(options):
135
136
def website (options ):
136
137
"""Create local copy of website files.
137
138
"""
139
+ if paverutils is None :
140
+ raise RuntimeError ('Building the website requires the sphinxcontrib.paverutils package' )
138
141
# Make sure the base template is updated
139
142
dest = path (options .website .template_dest ).expanduser ()
140
143
src = path (options .website .template_source ).expanduser ()
You can’t perform that action at this time.
0 commit comments