Skip to content

Commit bf73b90

Browse files
committed
Update checks and documentation to refer to Numpy 1.4 as the minimum Numpy version.
1 parent 04f1ef0 commit bf73b90

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

INSTALL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ progress::
4545
>>> import numpy
4646
>>> print numpy.__version__
4747

48-
matplotlib requires numpy version 1.1 or later. Although it is not a
48+
matplotlib requires numpy version 1.4 or later. Although it is not a
4949
requirement to use matplotlib, we strongly encourage you to install
5050
`ipython <http://ipython.org>`_, which is an interactive
5151
shell for python that is matplotlib-aware.
@@ -182,7 +182,7 @@ libraries themselves.
182182
:term:`python` 2.4 (or later but not python3)
183183
matplotlib requires python 2.4 or later (`download <http://www.python.org/download/>`__)
184184

185-
:term:`numpy` 1.1 (or later)
185+
:term:`numpy` 1.4 (or later)
186186
array support for python (`download
187187
<http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103>`__)
188188

lib/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@
152152

153153
import numpy
154154
nmajor, nminor = [int(n) for n in numpy.__version__.split('.')[:2]]
155-
if not (nmajor > 1 or (nmajor == 1 and nminor >= 1)):
155+
if not (nmajor > 1 or (nmajor == 1 and nminor >= 4)):
156156
raise ImportError(
157-
'numpy 1.1 or later is required; you have %s' % numpy.__version__)
157+
'numpy 1.4 or later is required; you have %s' % numpy.__version__)
158158

159159
def is_string_like(obj):
160160
if hasattr(obj, 'shape'): return 0

setupext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,13 @@ def check_for_numpy():
546546
import numpy
547547
except ImportError:
548548
print_status("numpy", "no")
549-
print_message("You must install numpy 1.1 or later to build matplotlib.")
549+
print_message("You must install numpy 1.4 or later to build matplotlib.")
550550
return False
551551
nn = numpy.__version__.split('.')
552552
if not (int(nn[0]) >= 1 and int(nn[1]) >= 1):
553-
if not (int(nn[0]) >= 2):
553+
if not (int(nn[0]) >= 4):
554554
print_message(
555-
'numpy 1.1 or later is required; you have %s' %
555+
'numpy 1.4 or later is required; you have %s' %
556556
numpy.__version__)
557557
return False
558558
module = Extension('test', [])

0 commit comments

Comments
 (0)