diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2022-01-13 15:17:53 +0100 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-01-13 15:18:22 +0100 |
| commit | d56997b270c120893fbcfb777e170bf61691f262 (patch) | |
| tree | 0ee651a06d7ab814bf0f624266a65d3ed85ee21d | |
| parent | ec3ac3733efe0a067fdc2bf937a98dc6b3e965d9 (diff) | |
| download | python-lxml-d56997b270c120893fbcfb777e170bf61691f262.tar.gz | |
Add a visible warning to the build output when detecting libxml2 2.9.11 or 2.9.12.
See https://bugs.launchpad.net/lxml/+bug/1928795
| -rw-r--r-- | setupinfo.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setupinfo.py b/setupinfo.py index a17bec56..8c2a36fb 100644 --- a/setupinfo.py +++ b/setupinfo.py @@ -444,6 +444,14 @@ def check_build_dependencies(): xml2_ok = check_min_version(xml2_version, '2.7.0', 'libxml2') xslt_ok = check_min_version(xslt_version, '1.1.23', 'libxslt') + if not OPTION_BUILD_LIBXML2XSLT and xml2_version in ('2.9.11', '2.9.12'): + print("\n" + "WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible" + " with this lxml version. " + "They produce excess content on serialisation. " + "Use a different library version or a static build." + "\n") + if xml2_version and xslt_version: print("Building against libxml2 %s and libxslt %s" % (xml2_version, xslt_version)) else: |
