provision: Silently unset PIP_USER if set.

This commit is contained in:
Kartik Soneji 2021-10-21 08:29:51 +05:30 committed by Tim Abbott
parent 58920affd4
commit 6705085e25
1 changed files with 3 additions and 0 deletions

View File

@ -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: if ZULIP_PATH not in sys.path:
sys.path.append(ZULIP_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.setup_venv import setup_virtualenv
from scripts.lib.zulip_tools import overwrite_symlink from scripts.lib.zulip_tools import overwrite_symlink