This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: LIBFFI_INCLUDEDIR is not detected when set into a profile nor in ./configure LIBFFI_INCLUDEDIR="path/to/libffi/include"
Type: compile error Stage:
Components: ctypes Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, belopolsky, meador.inge, neil pop
Priority: normal Keywords:

Created on 2019-02-15 12:44 by neil pop, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg335607 - (view) Author: neil pop (neil pop) Date: 2019-02-15 12:44
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) ?
Date User Action Args
2022-04-11 14:59:11adminsetgithub: 80182
2019-02-17 08:58:38SilentGhostsetnosy: + amaury.forgeotdarc, belopolsky, meador.inge
2019-02-15 12:44:26neil popcreate