ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysparse / dropPackageLoader.patch
blobb2526645f89083b593e0b0866b40d9568b699931
1 diff --git a/pysparse/__init__.py b/pysparse/__init__.py
2 index 6d09b00..ff39084 100644
3 --- a/pysparse/__init__.py
4 +++ b/pysparse/__init__.py
5 @@ -1,9 +1,42 @@
6 -"PySparse: A Fast Sparse Matrix Library for Python"
7 +"""
8 +PySparse: A Fast Sparse Matrix Library for Python
9 +=================================================
11 +Documentation is available in the docstrings and
12 +online at http://pysparse.sourceforge.net/.
14 +Contents
15 +--------
16 +Pysparse imports
17 +::
18 + spmatrix --- sparse matrix types
20 +and, in addition, provides:
22 +Subpackages
23 +-----------
24 +Using any of these subpackages requires an explicit import. For example,
25 +``import pysparse.itsolvers``.
27 +::
29 + itsolvers --- Iterative linear algebra solvers
30 + precon --- Preconditioners
31 + direct --- Direct solvers
32 + direct.superlu --- Wrappers to SuperLU library
33 + direct.umfpack --- Wrappers to UMFPACK library
34 + eigen.jdsym --- Jacobi davidson eigenvalue solver for symmetric matrices
36 +Utility tools
37 +-------------
38 +::
40 + __version__ --- pysparse version string
41 +"""
44 __docformat__ = 'restructuredtext'
46 -# Imports
47 -from numpy._import_tools import PackageLoader
48 try:
49 from version import version as __version__
50 except ImportError:
51 @@ -11,31 +44,6 @@ except ImportError:
52 __version__ = 'undefined'
54 from sparse import spmatrix
55 -#from sparse import *
56 -from misc import get_include
58 -pkgload = PackageLoader()
59 -pkgload(verbose=False,postpone=True)
61 -if __doc__:
62 - __doc__ += """
64 -Available subpackages
65 ----------------------
66 -"""
67 -if __doc__:
68 - __doc__ += pkgload.get_pkgdocs()
70 -__all__ = filter(lambda s: not s.startswith('_'), dir())
71 -__all__ += '__version__'
73 -__doc__ += """
75 -Miscellaneous
76 --------------
78 - __version__ : pysparse version string
79 -"""
81 from pysparse.misc import Deprecated
83 @@ -47,3 +55,5 @@ class _superlu:
84 return self.factorizeFnc(*args, **kwargs)
86 superlu = _superlu()
88 +__all__ = ['spmatrix', 'superlu', '__version__']