summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-01-31 15:12:34 -0500
committerRaul Cuza <raulcuza@gmail.com>2011-01-31 15:12:34 -0500
commit356fbb7a745bdcbbc2c2f10083c6867d423ceffc (patch)
treeb55ac161785b7380ecb15e4b62b708dd3835ed5a
parentfb1c1bf2fc5752317286b2d79e93fd03632f592e (diff)
parent1d505209a66edc877b8e4d65ceae0dcaf15d7016 (diff)
downloadbcfg2-356fbb7a745bdcbbc2c2f10083c6867d423ceffc.tar.gz
bcfg2-356fbb7a745bdcbbc2c2f10083c6867d423ceffc.tar.bz2
bcfg2-356fbb7a745bdcbbc2c2f10083c6867d423ceffc.zip
Accept upstream version of setup.py.
-rw-r--r--setup.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 6e63976c1..62da3b787 100644
--- a/setup.py
+++ b/setup.py
@@ -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",