summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-07-17 14:36:53 -0700
committerGitHub <noreply@github.com>2019-07-17 14:36:53 -0700
commit80ebdba587924b1b5704a68deb479e9f079e666b (patch)
treea5c14f5ab27abd4d52a3fd39626fc9ce10d1fc46 /doc
parenteabc07c3983a724925137a7556122b8b9834f559 (diff)
parentaf5b52b75687ef170bf17d7fa6ecc71718a92ae6 (diff)
downloadnumpy-80ebdba587924b1b5704a68deb479e9f079e666b.tar.gz
Merge pull request #13990 from mattip/fix-make-dist
BUILD: adapt "make version-check" to "make dist"
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile35
1 files changed, 18 insertions, 17 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 842d2ad13..c7ebd515b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -10,10 +10,6 @@
PYVER:=$(shell python3 -c 'from sys import version_info as v; print("{0}.{1}".format(v[0], v[1]))')
PYTHON = python$(PYVER)
-NUMPYVER:=$(shell python3 -c "import numpy; print(numpy.version.git_revision[:10])")
-GITVER ?= $(shell cd ..; python3 -c "from setup import git_version; \
- print(git_version()[:10])")
-
# You can set these variables from the command line.
SPHINXOPTS ?=
SPHINXBUILD ?= LANG=C sphinx-build
@@ -49,18 +45,6 @@ clean:
-rm -rf build/*
find . -name generated -type d -prune -exec rm -rf "{}" ";"
-version-check:
-ifeq "$(GITVER)" "Unknown"
- # @echo sdist build with unlabeled sources
-else ifneq ($(NUMPYVER),$(GITVER))
- @echo installed numpy $(NUMPYVER) != current repo git version \'$(GITVER)\'
- @echo use '"make dist"' or '"GITVER=$(NUMPYVER) make $(MAKECMDGOALS) ..."'
- @exit 1
-else
- # for testing
- # @echo installed numpy $(NUMPYVER) matches git version $(GITVER); exit 1
-endif
-
gitwash-update:
rm -rf source/dev/gitwash
install -d source/dev/gitwash
@@ -86,7 +70,24 @@ INSTALL_DIR = $(CURDIR)/build/inst-dist
INSTALL_PPH = $(INSTALL_DIR)/lib/python$(PYVER)/site-packages:$(INSTALL_DIR)/local/lib/python$(PYVER)/site-packages:$(INSTALL_DIR)/lib/python$(PYVER)/dist-packages:$(INSTALL_DIR)/local/lib/python$(PYVER)/dist-packages
UPLOAD_DIR=/srv/docs_scipy_org/doc/numpy-$(RELEASE)
-DIST_VARS=SPHINXBUILD="LANG=C PYTHONPATH=$(INSTALL_PPH) python$(PYVER) `which sphinx-build`" PYTHON="PYTHONPATH=$(INSTALL_PPH) python$(PYVER)" SPHINXOPTS="$(SPHINXOPTS)"
+DIST_VARS=SPHINXBUILD="LANG=C PYTHONPATH=$(INSTALL_PPH) python$(PYVER) `which sphinx-build`" PYTHON="PYTHONPATH=$(INSTALL_PPH) python$(PYVER)"
+
+NUMPYVER:=$(shell $(PYTHON) -c "import numpy; print(numpy.version.git_revision[:10])")
+GITVER ?= $(shell cd ..; $(PYTHON) -c "from setup import git_version; \
+ print(git_version()[:10])")
+
+version-check:
+ifeq "$(GITVER)" "Unknown"
+ # @echo sdist build with unlabeled sources
+else ifneq ($(NUMPYVER),$(GITVER))
+ @echo installed numpy $(NUMPYVER) != current repo git version \'$(GITVER)\'
+ @echo use '"make dist"' or '"GITVER=$(NUMPYVER) make $(MAKECMDGOALS) ..."'
+ @exit 1
+else
+ # for testing
+ # @echo installed numpy $(NUMPYVER) matches git version $(GITVER); exit 1
+endif
+
dist:
make $(DIST_VARS) real-dist