mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user