PHP 8.2.30
Preview: seeder.py Size: 1.09 KB
/proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/virtualenv/seed/seeder.py

from abc import ABCMeta, abstractmethod


class Seeder(metaclass=ABCMeta):
    """A seeder will install some seed packages into a virtual environment."""

    def __init__(self, options, enabled):
        """

        :param options: the parsed options as defined within :meth:`add_parser_arguments`
        :param enabled: a flag weather the seeder is enabled or not
        """
        self.enabled = enabled
        self.env = options.env

    @classmethod
    def add_parser_arguments(cls, parser, interpreter, app_data):  # noqa: U100
        """
        Add CLI arguments for this seed mechanisms.

        :param parser: the CLI parser
        :param app_data: the CLI parser
        :param interpreter: the interpreter this virtual environment is based of
        """
        raise NotImplementedError

    @abstractmethod
    def run(self, creator):
        """Perform the seed operation.

        :param creator: the creator (based of :class:`virtualenv.create.creator.Creator`) we used to create this \
        virtual environment
        """
        raise NotImplementedError


__all__ = [
    "Seeder",
]

Directory Contents

Dirs: 3 × Files: 2

Name Size Perms Modified Actions
embed DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
wheels DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
1.09 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
0 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).