[lxml-dev] Using, or building, lxml in Windows with Cygwin
Stefan Behnel
stefan_ml at behnel.de
Tue Jun 16 08:46:01 CEST 2009
David Antliff wrote:
> I am trying to get the Windows lxml egg to work with Cygwin, Python 2.5.2
> on WindowsXP, 32bit. I wasn't able to find a Cygwin package for lxml so
> I felt I needed to obtain or build a win32 version of lxml. I want to
> use the xpath
> functionality that lxml provides in python scripts, running in Cygwin.
>
> *** All commands below are issued in a Cygwin bash shell ***
Any reason why you use the Cygwin Python installation instead of a normal
Windows build?
I never tried building lxml on Windows myself, but with Cygwin, you may
get away with installing the developer packages of libxml2 and libxslt, or
with simply passing "--static-deps" as described for the MacOS build.
MinGW should work, but you need to configure it in your distutils.cfg:
[build]
compiler=mingw32
http://docs.python.org/install/index.html#location-and-names-of-config-files
If you get it to work, please report anything you had to do to the list.
Or even better: write a little section for this file:
http://codespeak.net/svn/lxml/trunk/doc/build.txt
Please ask back if you run into further problems.
Stefan
More information about the lxml-dev
mailing list