diff --git a/shenfun/legendre/fastgl/__init__.py b/shenfun/legendre/fastgl/__init__.py index b6dfe009..3e930502 100644 --- a/shenfun/legendre/fastgl/__init__.py +++ b/shenfun/legendre/fastgl/__init__.py @@ -1 +1,8 @@ -from .fastgl_wrap import leggauss, getGLPair +try: + from . import fastgl_wrap +except ModuleNotFoundError: + print('fastgl not found') + fastgl_wrap = None + +leggauss = getattr(fastgl_wrap, 'leggauss', None) +getGLPair = getattr(fastgl_wrap, 'getGLPair', None) \ No newline at end of file