I'm trying to build a local copy of lxml on an Ubuntu x86-64 system.
I'm not doing lxml development, just need the package.
The documentation for building on lxml.de says that *all* I need to type is:
python setup.py build --without-cython
The results below show that there is a file missing from the
distribution. If the file is supposed to be generated, the
documentation does not say how this is accomplished.
kevin@ubuntu:~/build/lxml-lxml-3.3$ python setup.py build --without-cython
Building lxml version 3.3.3.
WARNING: Trying to build without Cython, but pre-generated
'src/lxml/lxml.etree.c' is not available.
WARNING: Trying to build without Cython, but pre-generated
'src/lxml/lxml.objectify.c' is not available.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory:
/home/kevin/usr/local/lib
/home/kevin/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning:
Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
running build
running build_py
copying src/lxml/includes/lxml-version.h ->
build/lib.linux-i686-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/home/kevin/usr/local/include
-I/home/kevin/usr/local/include/python2.7
-I/home/kevin/usr/local/include/libxml2
-I/home/kevin/usr/local/include/libexslt
-I/home/kevin/usr/local/include/libxslt -I/home/kevin/usr/local/include
-fPIC -I/home/kevin/usr/local/include
-I/home/kevin/usr/local/include/libxml2
-I/home/kevin/build/lxml-lxml-3.3/src/lxml/includes
-I/home/kevin/usr/local/include/python2.7 -c src/lxml/lxml.etree.c -o
build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w
gcc: error: src/lxml/lxml.etree.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
So it appears that the file 'src/lxml/lxml.etree.c' is missing from the
source distribution. I've checked 3.3.3 back to 2.3 and it has NEVER
been there AFAICT.
My question is, where do I get this file or how do I generate it, or is
this a bug?
Thanks,
Kevin