Skip to content

Commit a55238b

Browse files
Merge branch 'master' into code_futurized
2 parents 935308f + 4c14e7f commit a55238b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

doc/buildhtml.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@
2929
import os.path
3030
import copy
3131
from fnmatch import fnmatch
32-
import docutils
33-
from docutils import ApplicationError
34-
from docutils import core, frontend, utils
35-
from docutils.utils.error_reporting import ErrorOutput, ErrorString
36-
from docutils.parsers import rst
37-
from docutils.readers import standalone, pep
38-
from docutils.writers import html4css1, pep_html
32+
try:
33+
import docutils
34+
from docutils import ApplicationError
35+
from docutils import core, frontend, utils
36+
from docutils.error_reporting import ErrorOutput, ErrorString
37+
from docutils.parsers import rst
38+
from docutils.readers import standalone, pep
39+
from docutils.writers import html4css1, pep_html
40+
except ImportError:
41+
raise ImportError('Importing `docutils` failed. Install it with `pip install docutils`.')
3942

4043

4144
usage = '%prog [options] [<directory> ...]'

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
'decorator >= 3.3.2',
3838
'selenium >= 2.32.0',
3939
'robotframework >= 2.6.0',
40-
'docutils >= 0.8.1',
4140
'future >= 0.15.2'
4241
],
4342
py_modules=['ez_setup'],
@@ -49,7 +48,6 @@
4948
'decorator',
5049
'selenium',
5150
'robotframework',
52-
'docutils',
5351
'future'
5452
]
5553
)

0 commit comments

Comments
 (0)