From 2de70fe23f320ce4f559e37057fe07b7af99cf5a Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 24 Mar 2014 15:41:08 +0000 Subject: mapi/glapi: Use ElementTree instead of libxml2. It is quite hard to meet the dependency of the libxml2 python bindings outside Linux, and in particularly on MacOSX; whereas ElementTree is part of Python's standard library. ElementTree is more limited than libxml2: no DTD verification, defaults from DTD, or XInclude support, but none of these limitations is serious enough to justify using libxml2. In fact, it was easier to refactor the code to use ElementTree than to try to get libxml2 python bindings. In the process, gl_item_factory class was refactored so that there is one method for each kind of object to be created, as it simplifies things substantially. I confirmed that precisely the same output is generated for GL/GLX/GLES. v2: Remove m4/ax_python_module.m4 as suggested by Matt Turner. Reviewed-by: Ian Romanick --- SConstruct | 7 ------- 1 file changed, 7 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index de735e94c34..0e10818ba17 100644 --- a/SConstruct +++ b/SConstruct @@ -59,13 +59,6 @@ else: Help(opts.GenerateHelpText(env)) -# fail early for a common error on windows -if env['gles']: - try: - import libxml2 - except ImportError: - raise SCons.Errors.UserError, "GLES requires libxml2-python to build" - ####################################################################### # Environment setup -- cgit v1.2.3