summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-02-26 22:16:50 -0800
committerRalf Gommers <ralf.gommers@gmail.com>2019-02-27 16:14:45 -0800
commit4839844018588ebd43600c260a0497c5f54216f8 (patch)
tree7d49b81d56809cfa5b3166f73a6e0572860c7e42
parenta8a0b870b4ef01baaed4faa87622d393668f5207 (diff)
downloadnumpy-4839844018588ebd43600c260a0497c5f54216f8.tar.gz
BLD: make doc build work more robustly.
Follow-up to gh-12911
-rw-r--r--doc/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 38ce20c40..7c1dde90c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -3,8 +3,7 @@
# This needs to be major.minor, just "3" doesn't work - it will result in
# issues with the amendments to PYTHONPATH and install paths (see DIST_VARS).
-# If you're using a different Python version, just change the number here.
-PYVER = 3.6
+export PYVER=`python3 -c 'import sys; print("{0}.{1}".format(*sys.version_info[:2]))'`
PYTHON = python$(PYVER)
# You can set these variables from the command line.