I saw this today when trying to run a nosetest in MacVim:

DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but "10.7" during configure

Add this to your .vimrc to fix this weird message.

let $MACOSX_DEPLOYMENT_TARGET = "10.7"