Merge "Add logs about the pypi mirror"

This commit is contained in:
Jenkins 2014-02-23 08:08:55 +00:00 committed by Gerrit Code Review
commit a280632250

View File

@ -36,6 +36,7 @@ EOF
if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1
then
export TOX_INDEX_URL='http://pypi.openstack.org/openstack'
echo "Switching on internal pypi mirror $TOX_INDEX_URL for $org/$project"
cat <<EOF > ~/.pydistutils.cfg
[easy_install]
index_url = http://pypi.openstack.org/openstack
@ -45,6 +46,7 @@ EOF
index-url = http://pypi.openstack.org/openstack
EOF
else
echo "$org/$project will not use the internal openstack pypi mirror"
cat <<EOF > ~/.pip/pip.conf
[global]
timeout = 60