Permalink
Browse files

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

  • Loading branch information...
1 parent a61b2b3 commit a3168ef2178619671dd4de39576cc03cc9faaa4b @pv committed 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
@@ -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'):
@@ -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 a3168ef

Please sign in to comment.