This issue is similar to the one discussed here
pypa/setuptools#1136
and here
pypa/pip#5732
It seems to only effect Python 2.7. Commenting out the line - '2.7' in .travis.yml fixes the problem. However, some repos still use Python 2.7, such as sdss_install through sdss4install, so this is not an ideal workaround.