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
|
||||
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() {
|
||||
echo "Usage: install [--hostname=zulip.example.com] [--email=admin@example.com] [--help]"
|
||||
exit 0
|
||||
|
|
|
@ -11,6 +11,10 @@ import sys
|
|||
import logging
|
||||
|
||||
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__), '..', '..'))
|
||||
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, su_to_zulip
|
||||
|
|
Loading…
Reference in New Issue