classification
Title: setup.py: _ctypes won't getbuilt when system ffi is only in $PREFIX
Type: compile error Stage:
Components: Cross-Build Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alex.Willmer, Chi Hsuan Yen, doko, pmpp, zach.ware
Priority: normal Keywords:

Created on 2017-10-06 05:14 by pmpp, last changed 2017-10-06 06:04 by Chi Hsuan Yen.

Messages (2)
msg303799 - (view) Author: pmpp (pmpp) Date: 2017-10-06 05:14
--with-system-ffi is mandatory for linux build but no way is provided ( eg --with-ffi-includes= --with-ffi-libs= ) so setup.py can detect libffi already built in $PREFIX and $EPREFIX/lib.

even if cflags/ldflags are ok , _ctypes build will be skipped with reason:
INFO: Could not locate ffi libs and/or headers

test condition: crystax-ndk toward android-19 on ubuntu xenial 32 bits
msg303801 - (view) Author: Chi Hsuan Yen (Chi Hsuan Yen) * Date: 2017-10-06 06:04
> even if cflags/ldflags are ok 

Might be this. setup.py doesn't use -I flags in $CFLAGS. It looks into $CPPFLAGS only.
History
Date User Action Args
2017-10-06 06:04:49Chi Hsuan Yensetmessages: + msg303801
2017-10-06 05:37:21zach.waresetnosy: + doko, zach.ware, Chi Hsuan Yen
2017-10-06 05:14:44pmppcreate