summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/reference/routines.other.rst7
-rwxr-xr-xsetup.py2
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/source/reference/routines.other.rst b/doc/source/reference/routines.other.rst
index a3a1f8a06..b7a924eba 100644
--- a/doc/source/reference/routines.other.rst
+++ b/doc/source/reference/routines.other.rst
@@ -31,3 +31,10 @@ Memory ranges
shares_memory
may_share_memory
+
+Numpy version comparison
+------------------------
+.. autosummary::
+ :toctree: generated/
+
+ lib.NumpyVersion
diff --git a/setup.py b/setup.py
index c06465970..ff8f96247 100755
--- a/setup.py
+++ b/setup.py
@@ -126,6 +126,8 @@ def get_version_info():
def write_version_py(filename='numpy/version.py'):
cnt = """
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY
+#
+# To compare versions robustly, use `numpy.lib.NumpyVersion`
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'