Is there a way to check which build flags where used? I used to use mpi4py.get_config to check the mpicc record for the "correct" mpi compiler. This seems to be blank now.
As a workaround I've been running ldd /path/to/MPI.<whatever>.so -- and checking for the correct libmpi -- but this is ugly, and brittle. Ideally I would like something like Julia's MPIPreferences.jl where I can just query the mpi configuration.