FWIW, travis comes with mock installed: http://about.travis-ci.org/docs/user/languages/python/#Pre-installed-packages