Re: [lxml] Building latest version of lxml for Python 2.7 on Windows 32, support libraries
![](https://secure.gravatar.com/avatar/ea4a09f32fa08e754f344887617af6ba.jpg?s=120&d=mm&r=g)
In-Reply-To=< CACiMDdfjTECwYcHmvw2bjCTB_SFZaGMw4DXkUQb2npJ1Hvc+Qw@mail.gmail.com> I've already done something similar, but with x64 packages. To build a wheel file for lxml, and link to static dependencies that you've already downloaded or compiled yourself, you need to do this: 1) Modify the STATIC_INCLUDE_DIRS and STATIC_LIBRARY_DIRS variables in setup.py to point to your already downloaded/compiled dependencies. 2) Use the following command to build a wheel file for lxml: python setup.py bdist_wheel --static This should compile lxml and build a wheel file that links against the static dependencies. If you want more details, check out my blog post here: https://benbernardblog.com/how-to-build-lxml-and-get-its-debug-symbols-on-wi... Hope this helps! Benoit
![](https://secure.gravatar.com/avatar/d91b834a8690ec4b1ab0e0dac132bded.jpg?s=120&d=mm&r=g)
On Fri, Feb 17, 2017 at 1:33 PM, Benoit Bernard <hi@benbernardblog.com> wrote:
In-Reply-To=<CACiMDdfjTECwYcHmvw2bjCTB_SFZaGMw4DXkUQb2npJ1Hvc+Qw@ mail.gmail.com>
I've already done something similar, but with x64 packages.
To build a wheel file for lxml, and link to static dependencies that you've already downloaded or compiled yourself, you need to do this:
1) Modify the STATIC_INCLUDE_DIRS and STATIC_LIBRARY_DIRS variables in setup.py to point to your already downloaded/compiled dependencies.
2) Use the following command to build a wheel file for lxml:
python setup.py bdist_wheel --static
This should compile lxml and build a wheel file that links against the static dependencies.
If you want more details, check out my blog post here: https://benbernardblog.com/how-to-build-lxml-and-get-its- debug-symbols-on-windows/
Hope this helps!
This helped a lot, Benoit. Thank you very much! Tom
participants (2)
-
Benoit Bernard
-
Tom Kacvinsky