mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
provision: Ensure python3 exists in PATH for CentOS.
This commit is contained in:
@@ -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
|
||||
# From a clone of zulip.git
|
||||
./tools/provision
|
||||
|
||||
@@ -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
|
||||
# for python35 and later.
|
||||
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,)
|
||||
for cmd in ['pg_config', 'pg_isready', 'psql']:
|
||||
# Our tooling expects these postgres scripts to be at
|
||||
|
||||
Reference in New Issue
Block a user