diff options
-rw-r--r-- | setup.py | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -6,12 +6,6 @@ from fnmatch import fnmatch from glob import glob import os.path -try: - import lxml.etree -except ImportError: - pass - - class BuildDTDDoc (Command): """Build DTD documentation""" @@ -113,7 +107,11 @@ try: except ImportError: pass -cmdclass['build_dtddoc'] = BuildDTDDoc +try: + import lxml.etree + cmdclass['build_dtddoc'] = BuildDTDDoc +except ImportError: + pass setup(cmdclass=cmdclass, name="Bcfg2", |