Please add pkg-config support to detect libxml2 and libxslt

Bug #1863413 reported by Hugh McMaster on 2020-02-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Low
Unassigned

Bug Description

Debian has decided to no longer package foo-config legacy scripts in favour of pkg-config. This means xml2-config and xslt-config will be removed from their respective development packages in the next few months.

Unfortunately, lxml fails to compile without xml2-config and/or xslt-config.

Please add support for using pkg-config to determine relevant libs and cflags.

Thank you

Hugh

----

Python : sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)
lxml.etree : (4, 5, 0, 0)
libxml used : (2, 9, 10)
libxml compiled : (2, 9, 10)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)

scoder (scoder) wrote :

You can set XML2_CONFIG="pkg-config libxml-2.0" and XSLT_CONFIG="pkg-config libxslt".

But yes, it would be nice if this also worked out of the box (although the build setup is already hugely complex…).
PR welcome, code is in setupinfo.py, look for usages of the environment variables above.

Changed in lxml:
importance: Undecided → Low
status: New → Triaged
Hugh McMaster (hmcmaster) wrote :

I've sent a PR to add this functionality and clean up the build system a bit.

scoder (scoder) on 2020-02-26
Changed in lxml:
status: Triaged → Fix Committed
milestone: none → 4.5.1
scoder (scoder) on 2020-05-23
Changed in lxml:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers