|
...
|
...
|
@@ -24,7 +24,20 @@ set -o xtrace
|
|
24
|
24
|
|
|
25
|
25
|
FILES=$TOP_DIR/files
|
|
26
|
26
|
|
|
27
|
|
-PIP_GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
|
|
|
27
|
+# The URL from where the get-pip.py file gets downloaded. If a local
|
|
|
28
|
+# get-pip.py mirror is available, PIP_GET_PIP_URL can be set to that
|
|
|
29
|
+# mirror in local.conf to avoid download timeouts.
|
|
|
30
|
+# Example:
|
|
|
31
|
+# PIP_GET_PIP_URL="http://local-server/get-pip.py"
|
|
|
32
|
+#
|
|
|
33
|
+# Note that if get-pip.py already exists in $FILES this script will
|
|
|
34
|
+# not re-download or check for a new version. For example, this is
|
|
|
35
|
+# done by openstack-infra diskimage-builder elements as part of image
|
|
|
36
|
+# preparation [1]. This prevents any network access, which can be
|
|
|
37
|
+# unreliable in CI situations.
|
|
|
38
|
+# [1] http://git.openstack.org/cgit/openstack-infra/project-config/tree/nodepool/elements/cache-devstack/source-repository-pip
|
|
|
39
|
+
|
|
|
40
|
+PIP_GET_PIP_URL=${PIP_GET_PIP_URL:-"https://bootstrap.pypa.io/get-pip.py"}
|
|
28
|
41
|
LOCAL_PIP="$FILES/$(basename $PIP_GET_PIP_URL)"
|
|
29
|
42
|
|
|
30
|
43
|
GetDistro
|