CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
errors.py68 linesDownload Raw Back to setuptools
1"""setuptools.errors2 3Provides exceptions used by setuptools modules.4"""5 6from __future__ import annotations7 8from distutils import errors as _distutils_errors9 10# Re-export errors from distutils to facilitate the migration to PEP63211 12ByteCompileError = _distutils_errors.DistutilsByteCompileError13CCompilerError = _distutils_errors.CCompilerError14ClassError = _distutils_errors.DistutilsClassError15CompileError = _distutils_errors.CompileError16ExecError = _distutils_errors.DistutilsExecError17FileError = _distutils_errors.DistutilsFileError18InternalError = _distutils_errors.DistutilsInternalError19LibError = _distutils_errors.LibError20LinkError = _distutils_errors.LinkError21ModuleError = _distutils_errors.DistutilsModuleError22OptionError = _distutils_errors.DistutilsOptionError23PlatformError = _distutils_errors.DistutilsPlatformError24PreprocessError = _distutils_errors.PreprocessError25SetupError = _distutils_errors.DistutilsSetupError26TemplateError = _distutils_errors.DistutilsTemplateError27UnknownFileError = _distutils_errors.UnknownFileError28 29# The root error class in the hierarchy30BaseError = _distutils_errors.DistutilsError31 32 33class InvalidConfigError(OptionError):  # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+34    """Error used for invalid configurations."""35 36 37class RemovedConfigError(OptionError):  # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+38    """Error used for configurations that were deprecated and removed."""39 40 41class RemovedCommandError(BaseError, RuntimeError):  # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+42    """Error used for commands that have been removed in setuptools.43 44    Since ``setuptools`` is built on ``distutils``, simply removing a command45    from ``setuptools`` will make the behavior fall back to ``distutils``; this46    error is raised if a command exists in ``distutils`` but has been actively47    removed in ``setuptools``.48    """49 50 51class PackageDiscoveryError(BaseError, RuntimeError):  # type: ignore[valid-type, misc] # distutils imports are `Any` on python 3.12+52    """Impossible to perform automatic discovery of packages and/or modules.53 54    The current project layout or given discovery options can lead to problems when55    scanning the project directory.56 57    Setuptools might also refuse to complete auto-discovery if an error prone condition58    is detected (e.g. when a project is organised as a flat-layout but contains59    multiple directories that can be taken as top-level packages inside a single60    distribution [*]_). In these situations the users are encouraged to be explicit61    about which packages to include or to make the discovery parameters more specific.62 63    .. [*] Since multi-package distributions are uncommon it is very likely that the64       developers did not intend for all the directories to be packaged, and are just65       leaving auxiliary code in the repository top-level, such as maintenance-related66       scripts.67    """68 
Aluode/PerceptionLabPortable · CoolFace