[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX
Ivan Levchenko
report at bugs.python.org
Thu Jan 10 09:31:24 EST 2019
Ivan Levchenko <levchenko.i at gmail.com> added the comment:
Was having the same issue compiling python 3.7.1 against locally compilied libffi 3.2.1.
Setting CPPFLAGS and LDFLAGS was not enough and was still getting the same error: INFO: Could not locate ffi libs and/or headers
Everything worked as soon as i added PKG_CONFIG_PATH to point to the location of the directory that had libffi.pc
For me that was /foo/bar/distrib/libffi-3.2.1/x86_64-unknown-linux-gnu
Can test if it works with this:
pkg-config libffi --cflags-only-I
----------
nosy: +Ivan Levchenko
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31710>
_______________________________________
More information about the Python-bugs-list
mailing list