Yes, it's a bit hackish - but I couldn't think of a better way. Does anyone know if distutils allows us to query the build path directly?

An alternative is to write the files into the source dir, but you asked me to change that during discussion of the original pull request.