summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 9eaa6f626..6e63976c1 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,12 @@ from distutils.core import Command
from fnmatch import fnmatch
from glob import glob
import os.path
-import lxml.etree
+
+try:
+ import lxml.etree
+except ImportError:
+ pass
+
class BuildDTDDoc (Command):
"""Build DTD documentation"""