mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user