provision: Ensure python3 exists in PATH for CentOS.

This commit is contained in:
rht
2019-01-04 20:29:52 +00:00
committed by Tim Abbott
parent 105732ab1f
commit 7e1520b01f
2 changed files with 4 additions and 1 deletions

View File

@@ -39,7 +39,8 @@ git remote add -f upstream https://github.com/zulip/zulip.git
``` ```
``` ```
# On CentOS/RHEL, you must first install epel-release, and then python36 # On CentOS/RHEL, you must first install epel-release, and then python36,
# and finally you must run `sudo ln -sf /usr/bin/python36 /usr/bin/python3`
# On Fedora, you must first install python3 # On Fedora, you must first install python3
# From a clone of zulip.git # From a clone of zulip.git
./tools/provision ./tools/provision

View File

@@ -294,6 +294,8 @@ def install_yum_deps(deps_to_install, retry=False):
# This is how a pip3 is installed to /usr/bin in CentOS/RHEL # This is how a pip3 is installed to /usr/bin in CentOS/RHEL
# for python35 and later. # for python35 and later.
run(["sudo", "python36", "-m", "ensurepip"]) run(["sudo", "python36", "-m", "ensurepip"])
# `python36` is not aliased to `python3` by default
run(["sudo", "ln", "-nsf", "/usr/bin/python36", "/usr/bin/python3"])
postgres_dir = 'pgsql-%s' % (POSTGRES_VERSION,) postgres_dir = 'pgsql-%s' % (POSTGRES_VERSION,)
for cmd in ['pg_config', 'pg_isready', 'psql']: for cmd in ['pg_config', 'pg_isready', 'psql']:
# Our tooling expects these postgres scripts to be at # Our tooling expects these postgres scripts to be at