From df74275584790f02ad9c97a5a86bafb712068025 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 30 Sep 2013 18:00:09 -0700 Subject: [PATCH] Set pip timeout to 60s when using pypi Change-Id: I8bb781773558ca1aef6ad395516c7cc84b3694e6 --- modules/jenkins/files/slave_scripts/select-mirror.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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