from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from future import standard_library
standard_library.install_aliases()

import numpy as np
import scipy.sparse as sp
from ctypes import CDLL, cdll, RTLD_GLOBAL
from ctypes import POINTER, byref, c_int, c_longlong

path = 'libmkl_intel_lp64.dylib'
MKLlib = CDLL(path, RTLD_GLOBAL)

from .pardisoInterface import pardisoinit, pardiso
from .pardisoSolver import pardisoSolver

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from future import standard_library
standard_library.install_aliases()

import platform
import numpy as np
import scipy.sparse as sp
from ctypes import CDLL, cdll, RTLD_GLOBAL
from ctypes import POINTER, byref, c_int, c_longlong

systype = platform.system()
if systype == 'Darwin':
    path = 'libmkl_intel_lp64.dylib'
elif systype == 'Linux':
    path = 'libmkl_intel_lp64.so'
elif systype == 'Windows':
    path = 'mkl_intel_lp64_dll.lib'
else:
    raise ImportError('Cannot determine MKL library to import')
MKLlib = CDLL(path, RTLD_GLOBAL)

from .pardisoInterface import pardisoinit, pardiso
from .pardisoSolver import pardisoSolver

Add experimental support for other OS versions.
Add experimental support for other OS versions.

  from __future__ import absolute_import
  from __future__ import unicode_literals
  from __future__ import print_function
  from __future__ import division
  from future import standard_library
  standard_library.install_aliases()
  
+ import platform
  import numpy as np
  import scipy.sparse as sp
  from ctypes import CDLL, cdll, RTLD_GLOBAL
  from ctypes import POINTER, byref, c_int, c_longlong
  
+ systype = platform.system()
+ if systype == 'Darwin':
- path = 'libmkl_intel_lp64.dylib'
+     path = 'libmkl_intel_lp64.dylib'
+ elif systype == 'Linux':
+     path = 'libmkl_intel_lp64.so'
+ elif systype == 'Windows':
+     path = 'mkl_intel_lp64_dll.lib'
+ else:
+     raise ImportError('Cannot determine MKL library to import')
  MKLlib = CDLL(path, RTLD_GLOBAL)
  
  from .pardisoInterface import pardisoinit, pardiso
  from .pardisoSolver import pardisoSolver
  
Add experimental support for other OS versions.
## Code Before:
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from future import standard_library
standard_library.install_aliases()

import numpy as np
import scipy.sparse as sp
from ctypes import CDLL, cdll, RTLD_GLOBAL
from ctypes import POINTER, byref, c_int, c_longlong

path = 'libmkl_intel_lp64.dylib'
MKLlib = CDLL(path, RTLD_GLOBAL)

from .pardisoInterface import pardisoinit, pardiso
from .pardisoSolver import pardisoSolver

## Instruction:
Add experimental support for other OS versions.
## Code After:
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from future import standard_library
standard_library.install_aliases()

import platform
import numpy as np
import scipy.sparse as sp
from ctypes import CDLL, cdll, RTLD_GLOBAL
from ctypes import POINTER, byref, c_int, c_longlong

systype = platform.system()
if systype == 'Darwin':
    path = 'libmkl_intel_lp64.dylib'
elif systype == 'Linux':
    path = 'libmkl_intel_lp64.so'
elif systype == 'Windows':
    path = 'mkl_intel_lp64_dll.lib'
else:
    raise ImportError('Cannot determine MKL library to import')
MKLlib = CDLL(path, RTLD_GLOBAL)

from .pardisoInterface import pardisoinit, pardiso
from .pardisoSolver import pardisoSolver
