py-gevent fails to build with some versions of Intel / oneAPI compilers (we've observed this on some but not all systems, with Intel versions ranging from intel@18.x.y to the latest oneAPI (classic) compilers.
I recently fixed a similar build error for curl (https://github.com/spack/spack/pull/41380), and conveniently the same method works for py-gevent. I tested this successfully on one of the Navy's HPCs.
Description
See spack mainline PR for a description: https://github.com/spack/spack/pull/41896