Skip to content

Commit 165c8d3

Browse files
committed
docs: Update Makefile to python 3
1 parent 5e24ca8 commit 165c8d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
WATCH_FILES= find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\$\|.*[.].md\|.*[.]py\$\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
44
SHELL := /bin/bash
5-
PYVERSION=$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v))")
65
HTTP_PORT = 8031
76

87
# You can set these variables from the command line.
@@ -169,10 +168,7 @@ serve:
169168
@echo 'docs server running at http://localhost:${HTTP_PORT}/'
170169
@echo
171170
@echo '=============================================================='
172-
@if test ${PYVERSION} -eq 2; then $(MAKE) serve_py2; else make serve_py3; fi
173-
174-
serve_py2:
175-
pushd _build/html; python2 -m SimpleHTTPServer ${HTTP_PORT}; popd
171+
@$(MAKE) serve_py3
176172

177173
serve_py3:
178174
python -m http.server ${HTTP_PORT} --directory _build/html

0 commit comments

Comments
 (0)