Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

provision: Silently unset PIP_USER if set.

Kartik Soneji6705085e25cc
diff --git a/tools/setup/setup_venvs.py b/tools/setup/setup_venvs.py
index 5b8d9acf8ab..fa51189a5a2 100755
--- a/tools/setup/setup_venvs.py
+++ b/tools/setup/setup_venvs.py
@@ -7,6 +7,9 @@ ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__f
if ZULIP_PATH not in sys.path:
sys.path.append(ZULIP_PATH)
+# unset PIP_USER if set, since it is not compatible with virtualenvs.
+os.environ.pop("PIP_USER", None)
+
from scripts.lib.setup_venv import setup_virtualenv
from scripts.lib.zulip_tools import overwrite_symlink