From 1eec8aa07729f3f1a290674ef2ce579856d8d839 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 9 Feb 2020 03:00:09 +0100 Subject: [PATCH] Switch to Python 3 in makefile to please Sphinx --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04c29bb..8c08a29 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ PACKAGE_NAME = linux-utils WORKON_HOME ?= $(HOME)/.virtualenvs VIRTUAL_ENV ?= $(WORKON_HOME)/$(PACKAGE_NAME) +INTERPRETER ?= python3 PATH := $(VIRTUAL_ENV)/bin:$(PATH) MAKE := $(MAKE) --no-print-directory SHELL = bash @@ -29,8 +30,7 @@ default: install: @test -d "$(VIRTUAL_ENV)" || mkdir -p "$(VIRTUAL_ENV)" - @test -x "$(VIRTUAL_ENV)/bin/python" || virtualenv --quiet "$(VIRTUAL_ENV)" - @test -x "$(VIRTUAL_ENV)/bin/pip" || easy_install pip + @test -x "$(VIRTUAL_ENV)/bin/python" || virtualenv --python=$(INTERPRETER) --quiet "$(VIRTUAL_ENV)" @pip install --quiet --requirement=requirements.txt @pip uninstall --yes $(PACKAGE_NAME) &>/dev/null || true @pip install --quiet --no-deps --ignore-installed .