[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX

Paul Hege report at bugs.python.org
Thu Jul 18 06:26:14 EDT 2019


Paul Hege <hege at elinq.de> added the comment:

I had also received the same warnings when running make:
"INFO: Could not locate ffi libs and/or headers"
and "Failed to build these modules: _ctypes". Although Python could still be installed, the pip command was not installed, and installing it using get_pip.py just led to an error indicating that the module "_ctypes" was not found.

I can confirm that setting CPPFLAGS and LDFLAGS as well as PKG_CONFIG_PATH, as suggested my Mr. Levchenko, allowed me to build and install python 3.7.1 locally without root privileges with ctypes and pip included and working, using a libffi also compiled from source.

----------
nosy: +Paul Hege

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


More information about the Python-bugs-list mailing list