1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-05-11 11:19:48 +00:00

Merge remote-tracking branch 'refs/remotes/hsoft/master'

# Conflicts:
#	Makefile
- Update to use makefile changes from hsoft/master
- Remove unneeded PIP_OPTIONS
This commit is contained in:
Andrew Senetar 2017-08-23 16:59:27 -05:00
commit d2f60ba270

View File

@ -12,12 +12,10 @@ ifeq ($(shell uname -o), Msys)
BIN = Scripts
SO = pyd
VENV_OPTIONS =
PIP_OPTIONS =
else
BIN = bin
SO = so
VENV_OPTIONS = --system-site-packages
PIP_OPTIONS = --user
endif
# Set this variable if all dependencies are already met on the system. We will then avoid the
@ -75,8 +73,11 @@ $(submodules_target) :
env : | $(submodules_target) reqs
ifndef NO_VENV
@echo "Creating our virtualenv"
${PYTHON} -m venv env ${VENV_OPTIONS}
$(VENV_PYTHON) -m pip install ${PIP_OPTIONS} -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 ${VENV_OPTIONS} env
endif
build/help : | env