Fix env creation in Makefile

The --user isn't a good idea at all to workaround Gentoo's patched pip.
This commit is contained in:
Virgil Dupras 2017-08-14 09:26:44 -04:00
parent 84011fb46d
commit 50e26928f4
1 changed files with 5 additions and 2 deletions

View File

@ -57,8 +57,11 @@ $(submodules_target) :
env : | $(submodules_target) reqs
ifndef NO_VENV
@echo "Creating our virtualenv"
${PYTHON} -m venv env --system-site-packages
$(VENV_PYTHON) -m pip install --user -r requirements.txt
${PYTHON} -m venv env
$(VENV_PYTHON) -m pip install -r requirements.txt
# We can't use the "--system-site-packages" flag on creation because otherwise we end up with
# the system's pip and that messes up things in some cases (notably in Gentoo).
${PYTHON} -m venv --upgrade --system-site-packages env
endif
build/help : | env