code: def libname_from_dir(dirname):
      
      parts = []
      for part in dirname.split('-'):
          if part[0].isdigit():
              break
          parts.append(part)
      return '-'.join(parts)
docs: Reconstruct the library name without it's version