Set pip timeout to 60s when using pypi
Change-Id: I8bb781773558ca1aef6ad395516c7cc84b3694e6
This commit is contained in:
parent
478f8e1ccc
commit
df74275584
@ -30,6 +30,13 @@ rm -f ~/.pydistutils.cfg
|
||||
mkdir -p ~/.pip
|
||||
rm -f ~/.pip/pip.conf
|
||||
|
||||
# Start with a default pip.conf for use with pypi.python.org
|
||||
# (which may be overwritten later)
|
||||
cat <<EOF > ~/.pip/pip.conf
|
||||
[global]
|
||||
timeout = 60
|
||||
EOF
|
||||
|
||||
# Noop, do not setup any mirrors to allow requirements to talk to the
|
||||
# outside world.
|
||||
if [ "$org" == "openstack" ] && [ "$project" == "requirements" ]
|
||||
@ -50,6 +57,7 @@ EOF
|
||||
else
|
||||
cat <<EOF > ~/.pip/pip.conf
|
||||
[global]
|
||||
timeout = 60
|
||||
index-url = http://pypi.openstack.org/openstack
|
||||
extra-index-url = http://pypi.python.org/simple
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user