If anyone is having trouble with CUDA/PyCUDA setup on Windows under bash

I just wrote this up in case it’s helpful. I was frustrated with not being able to use the mingw compiler toolchain with CUDA and this details the workarounds that were necessary to make an environment that I was happy with.