From 265a6056ac245aa23f6fa371c1c53f551cc22785 Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Fri, 28 Jan 2011 12:37:44 +0100 Subject: fixed #11038. Add strict parameter to metadata.check() and use the strict mode in check command --- distutils2/errors.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'distutils2/errors.py') diff --git a/distutils2/errors.py b/distutils2/errors.py index a080898..4b006b3 100644 --- a/distutils2/errors.py +++ b/distutils2/errors.py @@ -110,6 +110,10 @@ class UnknownFileError(CCompilerError): """Attempt to process an unknown file type.""" +class MetadataMissingError(DistutilsError): + """A required metadata is missing""" + + class MetadataConflictError(DistutilsError): """Attempt to read or write metadata fields that are conflictual.""" -- cgit v1.2.1 From a5993f46d3c5598493d54d52d135889be3a9a267 Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Sun, 13 Feb 2011 12:07:46 -0500 Subject: Move installation exceptions from distutils2.install to distutils2.errors and pep8 clean up on both modules --- distutils2/errors.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'distutils2/errors.py') diff --git a/distutils2/errors.py b/distutils2/errors.py index 4b006b3..bbf5497 100644 --- a/distutils2/errors.py +++ b/distutils2/errors.py @@ -9,7 +9,6 @@ This module is safe to use in "from ... import *" mode; it only exports symbols whose names start with "Distutils" and end with "Error".""" - class DistutilsError(Exception): """The root of all Distutils evil.""" @@ -135,3 +134,11 @@ class HugeMajorVersionNumError(IrrationalVersionError): This guard can be disabled by setting that option False. """ pass + + +class InstallationException(Exception): + """Base exception for installation scripts""" + + +class InstallationConflict(InstallationException): + """Raised when a conflict is detected""" -- cgit v1.2.1