[New-bugs-announce] [issue36001] LIBFFI_INCLUDEDIR is not detected when set into a profile nor in ./configure LIBFFI_INCLUDEDIR="path/to/libffi/include"

neil pop report at bugs.python.org
Fri Feb 15 07:44:26 EST 2019


New submission from neil pop <elisaturim16 at gmail.com>:

Hello,
I tried making python 3.7.2 on linux mint without libffi set into my LIBFFI_INCLUDEDIR (usr/local/include) but set into my bashsrc which is basically a profile with export LIBFFI_INCLUDEDIR="-Ipath/to/libff/include" however when i try making python after configuring it (i tried also passing that LIBFFI_INCLUDEDIR as an argument for the config part) then i get cannot build ctypes as there is no ffi.h header detected.
So what i did is that i modified the python setup at line 1989: ffi_inc = [sysconfig.get_config_var("LIBFFI_INCLUDEDIR")] to ffi_inc = ["path/to/libffi/include"] and ran the configure then the make and voilà, ctypes are now compiled. So i was wondering is there a way to setup LIBFFI_INCLUDEDIR so it get returned by sysconfig.get_config_var("LIBFFI_INCLUDEDIR") (since it clearly doesn't) ?
Cheers,
Elisa

----------
components: ctypes
messages: 335607
nosy: neil pop
priority: normal
severity: normal
status: open
title: LIBFFI_INCLUDEDIR is not detected when set into a profile nor in ./configure LIBFFI_INCLUDEDIR="path/to/libffi/include"
type: compile error
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36001>
_______________________________________


More information about the New-bugs-announce mailing list