Skip to main content

A recipe to build lxml

Project description

This recipe automates the installation of the lxml python package and, additionally, builds it statically against dependent libraries like libxml2, libxlst.

Detailed Documentation

Supported options

The recipe supports the following options:

egg

Set to the desired lxml egg, e.g. lxml or lxml==2.1.2

libxslt-url, libxml2-url

The URL to download the source tarball of these libraries from. Currently defaults to:

http://dist.repoze.org/lemonade/dev/cmmi/libxslt-1.1.24.tar.gz
http://dist.repoze.org/lemonade/dev/cmmi/libxml2-2.6.32.tar.gz
build-libxslt, build-libxml2

Set to true (default) if these should be build, false otherwise. Needes to be true for a static build.

static-build

true or false. On OS X this defaults to true.

xml2-loction

Needed if libxml2 is not built.

xslt-loction

Needed if libxslt is not built.

xslt-config

Path to the xslt-config binary. Not needed if build-libxslt is set to true.

xml2-config

Path to the xml2-config binary. Not needed if build-libxml2 is set to true.

force

Set to true to force rebuilding libraries every time.

Example usage

This is an example buildout:

[buildout]
parts =
   lxml
   pylxml
develop = .

log-level = DEBUG

download-directory = downloads
download-cache = downloads

versions=versions

[versions]
lxml = 2.1.3


[pylxml]
recipe=zc.recipe.egg
interpreter=pylxml
eggs=
    lxml

[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml

This will build a static version of the lxml egg, that is, it won’t have any dependencies on libxml2 and libxslt.

Contributors

Stefan Eletzhofer, Author

Change history

0.3 (2008-12-01)

  • Only add iconv on darwin. [seletz]

0.2.1 (2008-11-28)

  • Made static-build default to true on OS X [seletz]

  • Made build-libxslt` and ``build-libxml2 default to true [seletz]

  • Document default options [seletz]

0.2 (2008-11-27)

  • Fix Documentation REsT [seletz]

  • Rerelease due to setup.cfg messup [seletz]

0.1 (2008-11-27)

  • Added iconv library, which enables fully static builds. This is actually a bug in lxml’s setup. [seletz]

  • Updated docs, removed junk code [seletz]

  • Added tweaks needed for Mac OS X [seletz]

  • Added basic build steps for liblxml2, libxslt and lxml. [seletz]

  • Created recipe with ZopeSkel [seletz].

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z3c.recipe.staticlxml-0.3.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file z3c.recipe.staticlxml-0.3.tar.gz.

File metadata

File hashes

Hashes for z3c.recipe.staticlxml-0.3.tar.gz
Algorithm Hash digest
SHA256 2a6aaafa39f9550fb7078dfe218e899c2553d99cb562d8315dc9d0d60d836b19
MD5 8d4103bd8577a2c2961420e10d4ce45d
BLAKE2b-256 0740466d48ef805215490b95ac9f26fd4e6df21e9aa77b0c7db847f7b74fa3bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page