Skip to content

Commit eb76cc6

Browse files
committed
make supports custom python interpreter
1 parent ce4adf3 commit eb76cc6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
PYTHON = python
2+
13
# This .PHONY line prevents make from treating the docs/ directory like a build
24
# product:
35
.PHONY: docs
46

57
coverage:
6-
coveralls -v
8+
$(PYTHON) -m coveralls -v
79

810
docs:
911
$(MAKE) -C docs html
1012

1113
test:
12-
pytest --cov=trio_websocket
14+
$(PYTHON) -m pytest --cov=trio_websocket
1315

1416
publish:
15-
python setup.py sdist
17+
$(PYTHON) setup.py sdist
1618
twine upload dist/*
1719
rm -fr build dist .egg trio_websocket.egg-info

docs/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#
33

44
# You can set these variables from the command line.
5+
PYTHON = python
56
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
7+
SPHINXBUILD = $(PYTHON) -m sphinx
78
SOURCEDIR = .
89
BUILDDIR = _build
910

@@ -16,4 +17,4 @@ help:
1617
# Catch-all target: route all unknown targets to Sphinx using the new
1718
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1819
%: Makefile
19-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)