setup_venv: Uninstall typing on Python >3.4.

Otherwise this causes an error
```
AttributeError: type object 'Callable' has no attribute '_abc_registry'
```
on 3.7. While the error is specific to 3.7, it is safer to uninstall
typing for all the versions that don't require a pip-provided typing
library.
This commit is contained in:
rht
2018-12-17 21:04:18 +00:00
committed by Tim Abbott
parent e54a25070c
commit d3139266c8
3 changed files with 19 additions and 4 deletions

View File

@@ -290,6 +290,10 @@ def install_yum_deps(deps_to_install, retry=False):
print("Unrecognized output. `subscription-manager` might not be available")
run(["sudo", "yum", "install", "-y"] + yum_extra_flags + deps_to_install)
if vendor in ["CentOS", "RedHat"]:
# This is how a pip3 is installed to /usr/bin in CentOS/RHEL
# for python35 and later.
run(["sudo", "python36", "-m", "ensurepip"])
postgres_dir = 'pgsql-%s' % (POSTGRES_VERSION,)
for cmd in ['pg_config', 'pg_isready', 'psql']:
# Our tooling expects these postgres scripts to be at