Skip to content

Commit

Permalink
Switch to Python 3 in makefile to please Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Feb 9, 2020
1 parent 2564115 commit 1eec8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 .
Expand Down

0 comments on commit 1eec8aa

Please sign in to comment.