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
|
mkdir -p ~/.pip
|
||||||
rm -f ~/.pip/pip.conf
|
rm -f ~/.pip/pip.conf
|
||||||
|
|
||||||
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
# Noop, do not setup any mirrors to allow requirements to talk to the
|
||||||
if [ "$org" == "openstack" ]
|
# outside world.
|
||||||
|
if [ "$org" == "openstack" ] && [ "$project" == "requirements" ]
|
||||||
then
|
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
|
cat <<EOF > ~/.pip/pip.conf
|
||||||
[global]
|
[global]
|
||||||
index-url = http://pypi.openstack.org
|
index-url = http://pypi.openstack.org/openstack
|
||||||
extra-index-url = http://pypi.python.org/simple
|
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat <<EOF > ~/.pip/pip.conf
|
cat <<EOF > ~/.pip/pip.conf
|
||||||
[global]
|
[global]
|
||||||
index-url = http://pypi.openstack.org
|
index-url = http://pypi.openstack.org/openstack
|
||||||
extra-index-url = http://pypi.python.org/simple
|
extra-index-url = http://pypi.python.org/simple
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user