@classmethod<EOL><INDENT>def create(cls, path, only_python=True, pythons=None, name=None):<DEDENT>
from .path import PathEntry<EOL>path = ensure_path(path)<EOL>path_entries = defaultdict(PathEntry)<EOL>bin_ = "<STR_LIT>"<EOL>if path.as_posix().endswith(Path(bin_).name):<EOL><INDENT>path = path.parent<EOL><DEDENT>bin_dir = ensure_path(bin_.format(base=path.as_posix()))<EOL>if not name:<EOL><INDENT>name = path.name<EOL><DEDENT>current_entry = PathEntry.create(<EOL>bin_dir, is_root=True, only_python=True, pythons=pythons, name=name<EOL>)<EOL>path_entries[bin_dir.as_posix()] = current_entry<EOL>return cls(name=name, base=bin_dir, paths=path_entries)<EOL>
Accepts a path to a base python version directory.

        Generates the version listings for it