Skip to content

Commit 1eec8aa

Browse files
committed
Switch to Python 3 in makefile to please Sphinx
1 parent 2564115 commit 1eec8aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
PACKAGE_NAME = linux-utils
88
WORKON_HOME ?= $(HOME)/.virtualenvs
99
VIRTUAL_ENV ?= $(WORKON_HOME)/$(PACKAGE_NAME)
10+
INTERPRETER ?= python3
1011
PATH := $(VIRTUAL_ENV)/bin:$(PATH)
1112
MAKE := $(MAKE) --no-print-directory
1213
SHELL = bash
@@ -29,8 +30,7 @@ default:
2930

3031
install:
3132
@test -d "$(VIRTUAL_ENV)" || mkdir -p "$(VIRTUAL_ENV)"
32-
@test -x "$(VIRTUAL_ENV)/bin/python" || virtualenv --quiet "$(VIRTUAL_ENV)"
33-
@test -x "$(VIRTUAL_ENV)/bin/pip" || easy_install pip
33+
@test -x "$(VIRTUAL_ENV)/bin/python" || virtualenv --python=$(INTERPRETER) --quiet "$(VIRTUAL_ENV)"
3434
@pip install --quiet --requirement=requirements.txt
3535
@pip uninstall --yes $(PACKAGE_NAME) &>/dev/null || true
3636
@pip install --quiet --no-deps --ignore-installed .

0 commit comments

Comments
 (0)