When SciPy is built for the MOM node (MIC-AVX512 overidden with -xAVX2), importation of sub-packages scipy.spatial fails at run-time with "illegal instruction". It is not clear that the rebuild has worked correctly.
Install line:
spack install -j16 py-libensemble @0.5.2 +mpi +scipy +petsc4py +nlopt ^py-scipy cflags="-xAVX2" ^petsc~mpi~hdf5~hypre~superlu-dist cflags="-xAVX2" ^nlopt cflags="-xAVX2"