From e2e3f50705bd550285f78f40215ef3d80ba2c945 Mon Sep 17 00:00:00 2001 From: Raul Cuza Date: Mon, 31 Jan 2011 12:25:48 -0500 Subject: Put lxml.etree import in a try block. At this point bcfg2 does not have a hard dependency on lxml. Putting this import in a try block means setup.py will work for people without lxml. --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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""" -- cgit v1.2.3-1-g7c22