summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-02-27 18:03:17 -0700
committerGitHub <noreply@github.com>2019-02-27 18:03:17 -0700
commit2c3b936c83d88fb5e1cf19bbdafd9ba0051bc15e (patch)
tree4cffd8262cbb431cdbd2cd95c82e3a136ef2ed92
parent9b395b2e3049cae70ec34ac59cd1ac59c00ceef1 (diff)
parent4839844018588ebd43600c260a0497c5f54216f8 (diff)
downloadnumpy-2c3b936c83d88fb5e1cf19bbdafd9ba0051bc15e.tar.gz
Merge pull request #13050 from rgommers/docmakefile
BLD: make doc build work more robustly.
-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.