Add logs about the pypi mirror
Makes it easier to diagnose when we look at logs if it shows if we using the internal mirror or not. Change-Id: I61945e742dc7dcb021ed20cbace4196b32d192c4
This commit is contained in:
parent
38a3113027
commit
17f0e01330
@ -36,6 +36,7 @@ EOF
|
|||||||
if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1
|
if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1
|
||||||
then
|
then
|
||||||
export TOX_INDEX_URL='http://pypi.openstack.org/openstack'
|
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
|
cat <<EOF > ~/.pydistutils.cfg
|
||||||
[easy_install]
|
[easy_install]
|
||||||
index_url = http://pypi.openstack.org/openstack
|
index_url = http://pypi.openstack.org/openstack
|
||||||
@ -45,6 +46,7 @@ EOF
|
|||||||
index-url = http://pypi.openstack.org/openstack
|
index-url = http://pypi.openstack.org/openstack
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
|
echo "$org/$project will not use the internal openstack pypi mirror"
|
||||||
cat <<EOF > ~/.pip/pip.conf
|
cat <<EOF > ~/.pip/pip.conf
|
||||||
[global]
|
[global]
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
Loading…
x
Reference in New Issue
Block a user