From eb76cc6a81a4bb915d2ea4a790e07c6567e0d556 Mon Sep 17 00:00:00 2001 From: John Belmonte Date: Sat, 10 Nov 2018 08:10:11 +0900 Subject: [PATCH] make supports custom python interpreter --- Makefile | 8 +++++--- docs/Makefile | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5e54485..ca3abff 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,19 @@ +PYTHON = python + # This .PHONY line prevents make from treating the docs/ directory like a build # product: .PHONY: docs coverage: - coveralls -v + $(PYTHON) -m coveralls -v docs: $(MAKE) -C docs html test: - pytest --cov=trio_websocket + $(PYTHON) -m pytest --cov=trio_websocket publish: - python setup.py sdist + $(PYTHON) setup.py sdist twine upload dist/* rm -fr build dist .egg trio_websocket.egg-info diff --git a/docs/Makefile b/docs/Makefile index 298ea9e..7b5859e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,8 +2,9 @@ # # You can set these variables from the command line. +PYTHON = python SPHINXOPTS = -SPHINXBUILD = sphinx-build +SPHINXBUILD = $(PYTHON) -m sphinx SOURCEDIR = . BUILDDIR = _build @@ -16,4 +17,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)