Install pbr before glean to address SNI issues
Some older distros (like centos8 and xenial) don't support SNI in their easy_install implementations which are used to install setup_requires for python packages. PBR is a setup_requires for glean. We work around this problem when installing glean by preinstalling PBR with pip. Change-Id: Ie9f5c9ed06954cbe51f23fe8cca0655a931a5201
This commit is contained in:
parent
d7becbeb2b
commit
da674c4e5b
@ -22,6 +22,9 @@ set -eu
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
python3 -m venv /usr/glean
|
python3 -m venv /usr/glean
|
||||||
|
# glean requires PBR to install. We explicitly pip install it to avoid
|
||||||
|
# SNI problems with pypi.org on older distros.
|
||||||
|
/usr/glean/bin/pip install pbr
|
||||||
/usr/glean/bin/pip install /tmp/glean.git
|
/usr/glean/bin/pip install /tmp/glean.git
|
||||||
|
|
||||||
mkdir -p /usr/local/bin
|
mkdir -p /usr/local/bin
|
||||||
|
@ -22,6 +22,9 @@ set -eu
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
python3 -m venv /usr/glean
|
python3 -m venv /usr/glean
|
||||||
|
# glean requires PBR to install. We explicitly pip install it to avoid
|
||||||
|
# SNI problems with pypi.org on older distros.
|
||||||
|
/usr/glean/bin/pip install pbr
|
||||||
/usr/glean/bin/pip install glean
|
/usr/glean/bin/pip install glean
|
||||||
|
|
||||||
mkdir -p /usr/local/bin
|
mkdir -p /usr/local/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user