class documentation
class EnsurePackagesDiscovered: (source)
Known subclasses: setuptools.config.pyprojecttoml._EnsurePackagesDiscovered
Some expand functions require all the packages to already be discovered before they run, e.g. :func:`read_attr`, :func:`resolve_class`, :func:`cmdclass`. Therefore in some cases we will need to run autodiscovery during the evaluation of the configuration. However, it is better to postpone calling package discovery as much as possible, because some parameters can influence it (e.g. ``package_dir``), and those might not have been processed yet.
Method | __call__ |
Trigger the automatic package discovery, if it is still necessary. |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Property | package |
Proxy to ``package_dir`` that may trigger auto-discovery when used. |
Method | _get |
Undocumented |
Instance Variable | _called |
Undocumented |
Instance Variable | _dist |
Undocumented |