Use new openstack-specific mirror.
Change-Id: I60dae939a1306c78d0da8ba6ae58fe4265ee97fb Reviewed-on: https://review.openstack.org/23778 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
f1d119767b
commit
5c7c9b5396
@ -30,19 +30,26 @@ rm -f ~/.pydistutils.cfg
|
||||
mkdir -p ~/.pip
|
||||
rm -f ~/.pip/pip.conf
|
||||
|
||||
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
||||
if [ "$org" == "openstack" ]
|
||||
# Noop, do not setup any mirrors to allow requirements to talk to the
|
||||
# outside world.
|
||||
if [ "$org" == "openstack" ] && [ "$project" == "requirements" ]
|
||||
then
|
||||
echo $org
|
||||
exit 0
|
||||
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
||||
elif [ "$org" == "openstack" ]
|
||||
then
|
||||
cat <<EOF > ~/.pydistutils.cfg
|
||||
[easy_install]
|
||||
index_url = http://pypi.openstack.org/openstack
|
||||
EOF
|
||||
cat <<EOF > ~/.pip/pip.conf
|
||||
[global]
|
||||
index-url = http://pypi.openstack.org
|
||||
extra-index-url = http://pypi.python.org/simple
|
||||
index-url = http://pypi.openstack.org/openstack
|
||||
EOF
|
||||
else
|
||||
cat <<EOF > ~/.pip/pip.conf
|
||||
[global]
|
||||
index-url = http://pypi.openstack.org
|
||||
index-url = http://pypi.openstack.org/openstack
|
||||
extra-index-url = http://pypi.python.org/simple
|
||||
EOF
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user