diff --git a/modules/jenkins/files/slave_scripts/select-mirror.sh b/modules/jenkins/files/slave_scripts/select-mirror.sh index 374c4e33c6..7825490b09 100755 --- a/modules/jenkins/files/slave_scripts/select-mirror.sh +++ b/modules/jenkins/files/slave_scripts/select-mirror.sh @@ -30,6 +30,13 @@ rm -f ~/.pydistutils.cfg mkdir -p ~/.pip rm -f ~/.pip/pip.conf +# Start with a default pip.conf for use with pypi.python.org +# (which may be overwritten later) +cat < ~/.pip/pip.conf +[global] +timeout = 60 +EOF + # Noop, do not setup any mirrors to allow requirements to talk to the # outside world. if [ "$org" == "openstack" ] && [ "$project" == "requirements" ] @@ -50,6 +57,7 @@ EOF else cat < ~/.pip/pip.conf [global] +timeout = 60 index-url = http://pypi.openstack.org/openstack extra-index-url = http://pypi.python.org/simple EOF