Repository: scipy/scipy

Issue:
DEP: remove LAPACK *gegv functions
Deprecated since https://github.com/scipy/scipy/pull/5576, specifically https://github.com/scipy/scipy/commit/2b0a48c26a9a093a7da21f15ca7ada284ebcd5b1


Discussion:

Resolving patch:
diff --git a/scipy/linalg/_cython_signature_generator.py b/scipy/linalg/_cython_signature_generator.py
--- a/scipy/linalg/_cython_signature_generator.py
+++ b/scipy/linalg/_cython_signature_generator.py
@@ -106,9 +106,7 @@ def sigs_from_dir(directory, outfile, manual_wrappers=None, exclusions=None):
 # in the scipy-specific ABI wrappers.
 blas_exclusions = ['scabs1', 'xerbla']
 
-# Exclude all routines that do not have consistent interfaces from
-# LAPACK 3.4.0 through 3.6.0.
-# Also exclude routines with string arguments to avoid
+# Exclude routines with string arguments to avoid
 # compatibility woes with different standards for string arguments.
 lapack_exclusions = [
               # Not included because people should be using the
@@ -174,23 +172,7 @@ def sigs_from_dir(directory, outfile, manual_wrappers=None, exclusions=None):
               'clarscl2', 'dlarscl2', 'slarscl2', 'zlarscl2',
               'clascl2', 'dlascl2', 'slascl2', 'zlascl2',
               'cla_wwaddw', 'dla_wwaddw', 'sla_wwaddw', 'zla_wwaddw',
-              # Removed between 3.3.1 and 3.4.0.
-              'cla_rpvgrw', 'dla_rpvgrw', 'sla_rpvgrw', 'zla_rpvgrw',
-              # Signatures changed between 3.4.0 and 3.4.1.
-              'dlasq5', 'slasq5',
-              # Routines deprecated in LAPACK 3.6.0
-              'cgegs', 'cgegv', 'cgelsx',
-              'cgeqpf', 'cggsvd', 'cggsvp',
-              'clahrd', 'clatzm', 'ctzrqf',
-              'dgegs', 'dgegv', 'dgelsx',
-              'dgeqpf', 'dggsvd', 'dggsvp',
-              'dlahrd', 'dlatzm', 'dtzrqf',
-              'sgegs', 'sgegv', 'sgelsx',
-              'sgeqpf', 'sggsvd', 'sggsvp',
-              'slahrd', 'slatzm', 'stzrqf',
-              'zgegs', 'zgegv', 'zgelsx',
-              'zgeqpf', 'zggsvd', 'zggsvp',
-              'zlahrd', 'zlatzm', 'ztzrqf']
+              ]
 
 
 if __name__ == '__main__':
diff --git a/scipy/linalg/lapack.py b/scipy/linalg/lapack.py
--- a/scipy/linalg/lapack.py
+++ b/scipy/linalg/lapack.py
@@ -4,10 +4,6 @@
 
 This module contains low-level functions from the LAPACK library.
 
-The `*gegv` family of routines have been removed from LAPACK 3.6.0
-and have been deprecated in SciPy 0.17.0. They will be removed in
-a future release.
-
 .. versionadded:: 0.12.0
 
 .. note::
@@ -98,11 +94,6 @@
    cgeev_lwork
    zgeev_lwork
 
-   sgegv
-   dgegv
-   cgegv
-   zgegv
-
    sgehrd
    dgehrd
    cgehrd
@@ -841,23 +832,6 @@
 
 __all__ = ['get_lapack_funcs']
 
-_dep_message = """The ``*gegv`` family of routines has been deprecated in
-LAPACK 3.6.0 in favor of the ``*ggev`` family of routines.
-The corresponding wrappers will be removed from SciPy in
-a future release."""
-
-cgegv = _np.deprecate(cgegv, old_name='cgegv', message=_dep_message)
-dgegv = _np.deprecate(dgegv, old_name='dgegv', message=_dep_message)
-sgegv = _np.deprecate(sgegv, old_name='sgegv', message=_dep_message)
-zgegv = _np.deprecate(zgegv, old_name='zgegv', message=_dep_message)
-
-# Modify _flapack in this scope so the deprecation warnings apply to
-# functions returned by get_lapack_funcs.
-_flapack.cgegv = cgegv
-_flapack.dgegv = dgegv
-_flapack.sgegv = sgegv
-_flapack.zgegv = zgegv
-
 # some convenience alias for complex functions
 _lapack_alias = {
     'corghr': 'cunghr', 'zorghr': 'zunghr',
diff --git a/scipy/linalg/setup.py b/scipy/linalg/setup.py
--- a/scipy/linalg/setup.py
+++ b/scipy/linalg/setup.py
@@ -45,9 +45,6 @@ def configuration(parent_package='', top_path=None):
     # flapack:
     sources = ['flapack.pyf.src']
     sources += get_g77_abi_wrappers(lapack_opt)
-    dep_pfx = join('src', 'lapack_deprecations')
-    deprecated_lapack_routines = [join(dep_pfx, c + 'gegv.f') for c in 'cdsz']
-    sources += deprecated_lapack_routines
     depends = ['flapack_gen.pyf.src',
                'flapack_gen_banded.pyf.src',
                'flapack_gen_tri.pyf.src',


Test patch: