doesn't find libxml2 headers automatically
Bug #144471 reported by
Marius Gedminas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
Unassigned |
Bug Description
On Debian/Ubuntu libxml2-dev installs the headers into /usr/include/
python setup.py build_ext -i -I /usr/include/
This solution doesn't work when setuptools tries to automatically install lxml as a dependency for something else.
On Linux, the standard way of figuring out the flags to pass to the C compiler is to use pkg-config:
$ pkg-config --cflags libxml-2.0
-I/usr/
It would help if lxml's setup.py would use this to determine the necessary build flags automatically.
Changed in lxml: | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in lxml: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
pkg-config is not Linux-specific at all, it works on at least all POSIX systems and possibly on Windows as well.