The gevent 1.3.7 and 1.4.0 fails to cross compile.
This is for two primary reasons:
1. The includes that are are pulled in for compiling accidentally reference the host system's /usr/include/python2.7. This causes a violation.
2. Even though we specify that we don't want to use the embedded libev library, the setup.py still wants to build the embedded libev library. The issues is that the build script does not inform ./configure that we are doing a cross compile.
The proposed solution:
I submitted a PR at https://github.com/gentoo/gentoo/pull/14491 .
Please submit patches to the upstream projects. We try not to carry patches downstream long-term where it is avoidable.
gevent-1.4.0-cross-compile-libev.patch looks Gentoo-specific with its references to CBUILD and CHOST. Could you come up with a solution that might be accepted upstream?