[lxml-dev] Build on AIX5
Chris Allen
chrisa at matrixscience.com
Wed Jan 3 18:26:26 CET 2007
Hi guys,
Managed to build lxml 1.1.2 on AIX5.2, however I had to make a minor
patch to "setup.py" (at the bottom of this post for anyone interested).
But when I tried to run the test suite it fails as shown below. The
"Installing lxml" page on the website says that Python 2.3 is supported
but "DocFileSuite" seems to have arrived in 2.4. Does that mean 2.3
isn't really supported for use with lxml?
-bash-2.05b$ gmake test_inplace
python setup.py build_ext -i
Building lxml version 1.1.2
running build_ext
python test.py -p -v
TESTED VERSION:
Python: (2, 3, 4, 'final', 0)
lxml.etree: (1, 1, 2, 0)
libxml used: (2, 6, 23)
libxml compiled: (2, 6, 23)
libxslt used: (1, 1, 15)
libxslt compiled: (1, 1, 15)
Traceback (most recent call last):
File "test.py", line 591, in ?
exitcode = main(sys.argv)
File "test.py", line 554, in main
test_cases = get_test_cases(test_files, cfg, tracer=tracer)
File "test.py", line 258, in get_test_cases
test_suite = module.test_suite()
File "/home/matrix/lxml-1.1.2/src/lxml/tests/test_etree.py", line
1262, in test_suite
suite.addTests(
AttributeError: 'module' object has no attribute 'DocFileSuite'
gmake: *** [test_inplace] Error 1
Thanks,
Chris
*** setup.py.orig Sun Oct 29 18:28:34 2006
--- setup.py Wed Jan 3 16:56:59 2007
***************
*** 124,129 ****
--- 124,133 ----
xslt_libs.insert(i, libname.replace('xslt', 'exslt'))
break
+ # Sometimes (eg. AIX) "libxml2" is missing from the link list.
+ if not xslt_libs.count('-lxml2'):
+ xslt_libs.extend(flags('xml2-config --libs'))
+
if '--rpath' in sys.argv:
# compile with --rpath under gcc
sys.argv.remove('--rpath')
More information about the lxml-dev
mailing list