travis: Use sudo -H to call pip

pip apparently needs this to make caching work properly?
See #1396.
This commit is contained in:
Florian Bruhin 2016-04-06 07:13:03 +02:00
parent 812c255379
commit b70975223f

View File

@ -119,8 +119,8 @@ if 'APPVEYOR' in os.environ:
elif TRAVIS_OS == 'linux' and 'DOCKER' in os.environ:
pass
elif TRAVIS_OS == 'linux':
folded_cmd(['sudo', 'pip', 'install', '-U', 'pip'])
folded_cmd(['sudo', 'pip', 'install', '-U'] + pip_packages)
folded_cmd(['sudo', '-H', 'pip', 'install', '-U', 'pip'])
folded_cmd(['sudo', '-H', 'pip', 'install', '-U'] + pip_packages)
pkgs = []