Debian Jessie에서의 PyXML 설치

PyXML - Pain in a neck

PyXML installation is failed on debian jessie

PVDI client depends on PyXML(Don’t ask me why)

Recently, PyXML installation is failed on my laptop. The reason is when PyXML is compiled, memmove not found.

I downloaded PyXML-0.8.4.tar.gz from https://pypi.python.org/pypi/PyXML/0.8.4. untar it and tried to build it.

$ python setup.py build
...
/lib/xmlparse.c -o build/temp.linux-x86_64-2.7/extensions/expat/lib/xmlparse.o
extensions/expat/lib/xmlparse.c:75:2: error: #error memmove does not exist on this platform, nor is a substitute available
 #error memmove does not exist on this platform, nor is a substitute available
  ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Is it python bug?

I put “#define HAVE_MEMMOVE 1” in /usr/include/python2.7/pyconfig.h.

$ echo "#define HAVE_MEMMOVE 1" |sudo tee -a /usr/include/python2.7/pyconfig.h

Now the build is successful.

We’ve gotta revampi or recreate our PVDI client program. PyXML has not been maintained for a long time.