Don't fail on setup_win32.py if docutil is not installed.

This commit is contained in:
js 2008-07-15 23:46:24 +00:00
parent 3bd76e406a
commit abec83fa3b
1 changed files with 12 additions and 0 deletions

View File

@ -44,6 +44,18 @@ opts = {
}
}
try:
import docutils.readers
except ImportError:
opts['py2exe']['includes'] = \
opts['py2exe']['includes'].replace(',docutils.readers.*', '')
try:
import docutils.writers.html4css1
except ImportError:
opts['py2exe']['includes'] = \
opts['py2exe']['includes'].replace(',docutils.writers.html4css1', '')
setup(
name = 'Gajim',
version = '0.11.4.4-svn',