Please add pkg-config support to detect libxml2 and libxslt

Bug #1863413 reported by Hugh McMaster
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

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



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)

Revision history for this message
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, look for usages of the environment variables above.

Changed in lxml:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Hugh McMaster (hmcmaster) wrote :

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.