diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-09-28 11:31:16 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-09-28 11:31:16 -0600 |
commit | 9b9469980ebbd79e67c20e609b3cf1c860ba3308 (patch) | |
tree | c00c17814cb5c5a98fe5bbd19f95fe1d92d1e0bd /numpy/__init__.py | |
parent | 33cd94b5ee56829d81bd43f3b34d113b07184c86 (diff) | |
download | numpy-9b9469980ebbd79e67c20e609b3cf1c860ba3308.tar.gz |
MAINT: Make useless imports of oldnumeric and numarray safe.
The oldnumeric and numarray packages were removed in numpy 1.9, but
some packages, e.g. scipy, import them even though they are not used.
This defines both to the string 'removed' in numpy/__init__.py, which
avoids an import error.
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 532ec14c8..1029652c8 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -121,6 +121,12 @@ class ModuleDeprecationWarning(DeprecationWarning): pass +# oldnumeric and numarray were removed in 1.9. In case some packages import +# but do not use them, we define them here for backward compatibility. +oldnumeric = 'removed' +numarray = 'removed' + + # We first need to detect if we're being called as part of the numpy setup # procedure itself in a reliable manner. try: |