mirror of https://github.com/zulip/zulip.git
install: Set the locale so our dependencies can install.
Many pip packages don't install properly without a US locale.
This commit is contained in:
parent
f5fcbe453b
commit
11ab545f3b
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Ensure that we're using a US locale, since some pip dependencies
|
||||||
|
# can't install in random locales.
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
export LC_CTYPE="en_US.UTF-8"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: install [--hostname=zulip.example.com] [--email=admin@example.com] [--help]"
|
echo "Usage: install [--hostname=zulip.example.com] [--email=admin@example.com] [--help]"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -11,6 +11,10 @@ import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
os.environ["PYTHONUNBUFFERED"] = "y"
|
os.environ["PYTHONUNBUFFERED"] = "y"
|
||||||
|
# Ensure that we're using a US locale, since some pip dependencies
|
||||||
|
# can't install in random locales.
|
||||||
|
os.environ['LC_ALL'] = "en_US.UTF-8"
|
||||||
|
os.environ['LC_CTYPE'] = "en_US.UTF-8"
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
|
||||||
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, su_to_zulip
|
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, su_to_zulip
|
||||||
|
|
Loading…
Reference in New Issue