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 | |
---|---|---|---|---|---|
lxml |
Fix Released
|
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_
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)
Changed in lxml: | |
status: | Triaged → Fix Committed |
milestone: | none → 4.5.1 |
Changed in lxml: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.