Commits

dirkbaechle committed 6ef0608

- added a check for the lxml/libxml2 Python bindings, compiling the UserGuide gets skipped if they're not present
- updated list of required build packages

  • Participants
  • Parent commits 54dac1f
  • Branches new_doc_toolchain

Comments (0)

Files changed (2)

bin/scons_dev_master.py

 ]
 
 BUILDING_PACKAGES = [
-    'docbook',
-    'docbook-dsssl',
-    'docbook-utils',
-    'docbook-xml',
-    'groff-base',
-    'jade',
-    'jadetex',
-    'man2html',
+    'python-libxml2',
+    'python-libxslt1',
+    'fop',
+    'python-dev',
     'python-epydoc',
     'rpm',
-    'sp',
     'tar',
-
+    
     # additional packages that Bill Deegan's web page suggests
     #'docbook-to-man',
     #'docbook-xsl',
 <!ENTITY buildrevision "%s">
 """ % (date, ver, rev))
 
-
+#
+# Check whether we have all tools installed for
+# building the documentation.
+#
+skip_doc = False
+try:
+    import libxml2
+except:
+    try:
+        import lxml
+    except:
+        print "doc: Neither libxml2 nor lxml Python bindings found!"
+        print "     Please install one of the packages python-libxml2 or python-lxml."
+        skip_doc = True
+        
 if not fop and not xep:
-    print "doc: No PDF renderer found (fop|xep), skipping building User Guide."
+    print "doc: No PDF renderer found (fop|xep)!"
+    skip_doc = True
+    
+if skip_doc:
+    print "doc: ...skipping building User Guide."
 else:
     #
     # Always create a version.xml file containing the version information