[New-bugs-announce] [issue6943] setup.py fails to find headers of system libffi

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Sat Sep 19 05:18:42 CEST 2009


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

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().)

----------
components: Build
files: python-fix_search_for_libffi_headers.patch
keywords: patch
messages: 92856
nosy: Arfrever, loewis
severity: normal
status: open
title: setup.py fails to find headers of system libffi
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14928/python-fix_search_for_libffi_headers.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6943>
_______________________________________


More information about the New-bugs-announce mailing list