docs: def to_shared_lib(name):
      """Return library name depending on platform.
  
      Parameters
      ----------
      name : str
          Name of library.
  
      Returns
      -------
      str
          Name of library with extension.
  
      """
      if sys.platform.startswith('linux'):
          return name + '.so'
      elif sys.platform.startswith('darwin'):
          return name + '.dylib'
      elif sys.platform.startswith('win'):
          return name + '.dll'
      else:
          sys.exit(1)