classification
Title: setup.py fails to find headers of system libffi
Type: compile error Stage: patch review
Components: Build Versions: Python 3.2, Python 3.1, Python 3.0, Python 2.7, Python 2.6, Python 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: loewis Nosy List: Arfrever, georg.brandl, loewis (3)
Priority: normal Keywords easy, patch

Created on 2009-09-19 03:18 by Arfrever, last changed 2009-09-19 15:08 by Arfrever.

Files
File name Uploaded Description Edit Remove
python-fix_search_for_libffi_headers.patch Arfrever, 2009-09-19 03:18 Fix for search for libffi headers
python-fix_search_for_libffi_headers.patch Arfrever, 2009-09-19 15:08 Updated fix for search for libffi header
Messages (3)
msg92856 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2009-09-19 03:18
I use --with-system-ffi option, but setup.py fails to find headers of
system libffi which are placed outside standard include directory,
which causes using of internal copy of libffi.

In Gentoo, headers of libffi-3.0.8 are installed into
/usr/lib/libffi-3.0.8/include directory, because their content is
specific to given architecture.

I'm attaching the patch which cause using of `pkg-config libffi --
(Unfortunately subprocess module cannot be used in setup.py, so I'm
using os.popen().)
msg92857 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2009-09-19 03:21
It seems that a part of my comment has been truncated.
I meant `pkg-config libffi --cflags` command.
msg92861 - (view) Author: Georg Brandl (georg.brandl) Date: 2009-09-19 07:43
Patch looks OK and works on my system (the listcomp should be wrapped
though).
History
Date User Action Args
2009-09-19 15:08:33Arfreversetfiles: + python-fix_search_for_libffi_headers.patch
2009-09-19 07:43:27georg.brandlset
nosy: + georg.brandl
messages: + msg92861
priority: normal
assignee: loewis
keywords: + easy
type: compile error
stage: patch review
2009-09-19 03:21:29Arfreversetmessages: + msg92857
2009-09-19 03:18:41Arfrevercreate