Use b.pypi.python.org pypi mirror instead of pypi.

Force easy_install to use b.pypi.python.org instead of pypi.python.org.
Make pip fall back on b.pypi.python.org instead of pypi.python.org.
Pypi proper has been extremely flaky lately. Use and an alternative to
try and avoid this flakiness.

Change-Id: I027f31bc30676b6f8cdc6342173263781251191d
Reviewed-on: https://review.openstack.org/22492
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2013-02-20 14:26:43 -08:00 committed by Jenkins
parent 4b8a775efe
commit 1bac243171
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,3 @@
[global]
index-url = http://pypi.openstack.org
extra-index-url = http://pypi.python.org/simple
extra-index-url = http://b.pypi.python.org/simple

View File

@ -1,2 +1,2 @@
[easy_install]
index_url = http://pypi.openstack.org
index_url = http://b.pypi.python.org/simple

View File

@ -52,7 +52,11 @@ class jenkins::jenkinsuser(
}
file { '/home/jenkins/.pydistutils.cfg':
ensure => absent,
ensure => present,
owner => 'jenkins',
group => 'jenkins',
mode => '0640',
source => 'puppet:///modules/jenkins/pydistutils.cfg',
require => File['/home/jenkins'],
}