Browse files

DEP: mark scipy.lib.blas and scipy.lib.lapack as deprecated

  • Loading branch information...
1 parent 812c886 commit 3a2558e4790a905b78b30d4d0c39706d0af2c494 @pv pv committed with rgommers Nov 17, 2012
Showing with 23 additions and 0 deletions.
  1. +11 −0 scipy/lib/blas/__init__.py
  2. +12 −0 scipy/lib/lapack/__init__.py
View
11 scipy/lib/blas/__init__.py
@@ -2,6 +2,8 @@
Wrappers to BLAS library
========================
+NOTE: this module is deprecated -- use scipy.linalg.blas instead!
+
fblas -- wrappers for Fortran [*] BLAS routines
cblas -- wrappers for ATLAS BLAS routines
get_blas_funcs -- query for wrapper functions.
@@ -88,6 +90,15 @@
from numpy import deprecate
+@deprecate(old_name="scipy.lib.blas", new_name="scipy.linalg.blas")
+def _deprecated():
+ pass
+try:
+ _deprecated()
+except DeprecationWarning, e:
+ # don't fail import if DeprecationWarnings raise error -- works around
+ # the situation with Numpy's test framework
+ pass
_use_force_cblas = 1
if hasattr(cblas,'empty_module'):
View
12 scipy/lib/lapack/__init__.py
@@ -2,6 +2,8 @@
Wrappers to LAPACK library
==========================
+NOTE: this module is deprecated -- use scipy.linalg.lapack instead!
+
flapack -- wrappers for Fortran [*] LAPACK routines
clapack -- wrappers for ATLAS LAPACK routines
calc_lwork -- calculate optimal lwork parameters
@@ -145,6 +147,16 @@
# replaced with the available one. If none is available, exception
# is raised at the first attempt to use the resources.
+@deprecate(old_name="scipy.lib.lapack", new_name="scipy.linalg.lapack")
+def _deprecated():
+ pass
+try:
+ _deprecated()
+except DeprecationWarning, e:
+ # don't fail import if DeprecationWarnings raise error -- works around
+ # the situation with Numpy's test framework
+ pass
+
import flapack
import clapack

0 comments on commit 3a2558e

Please sign in to comment.