Merge "Use requirements project list for mirror selection"
This commit is contained in:
commit
318bd35b4c
@ -31,13 +31,9 @@ cat <<EOF > ~/.pip/pip.conf
|
|||||||
timeout = 60
|
timeout = 60
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Noop, do not setup any mirrors to allow requirements to talk to the
|
# For project listed in openstack/requirements,
|
||||||
# outside world.
|
# use the pypi.openstack.org mirror exclusively
|
||||||
if [ "$org" == "openstack" ] && [ "$project" == "requirements" ]
|
if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1
|
||||||
then
|
|
||||||
echo "Not changing mirror"
|
|
||||||
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
|
||||||
elif [ "$org" == "openstack" ]
|
|
||||||
then
|
then
|
||||||
export TOX_INDEX_URL='http://pypi.openstack.org/openstack'
|
export TOX_INDEX_URL='http://pypi.openstack.org/openstack'
|
||||||
cat <<EOF > ~/.pydistutils.cfg
|
cat <<EOF > ~/.pydistutils.cfg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user