Kaydet (Commit) 8c66b697 authored tarafından Greg Ward's avatar Greg Ward

Added DistutilsExecError, DistutilsValueError.

üst e27db5a3
...@@ -52,12 +52,22 @@ if type (RuntimeError) is types.ClassType: ...@@ -52,12 +52,22 @@ if type (RuntimeError) is types.ClassType:
class DistutilsOptionError (DistutilsError): class DistutilsOptionError (DistutilsError):
pass pass
# DistutilsValueError is raised anytime an option value (presumably
# provided by setup.py) is invalid.
class DistutilsValueError (DistutilsError):
pass
# DistutilsPlatformError is raised when we find that we don't # DistutilsPlatformError is raised when we find that we don't
# know how to do something on the current platform (but we do # know how to do something on the current platform (but we do
# know how to do it on some platform). # know how to do it on some platform).
class DistutilsPlatformError (DistutilsError): class DistutilsPlatformError (DistutilsError):
pass pass
# DistutilsExecError is raised if there are any problems executing
# an external program
class DistutilsExecError (DistutilsError):
pass
# String-based exceptions # String-based exceptions
else: else:
DistutilsError = 'DistutilsError' DistutilsError = 'DistutilsError'
...@@ -67,6 +77,8 @@ else: ...@@ -67,6 +77,8 @@ else:
DistutilsArgError = 'DistutilsArgError' DistutilsArgError = 'DistutilsArgError'
DistutilsFileError = 'DistutilsFileError' DistutilsFileError = 'DistutilsFileError'
DistutilsOptionError = 'DistutilsOptionError' DistutilsOptionError = 'DistutilsOptionError'
DistutilsValueError = 'DistutilsValueError'
DistutilsPlatformError = 'DistutilsPlatformError' DistutilsPlatformError = 'DistutilsPlatformError'
DistutilsExecError = 'DistutilsExecError'
del types del types
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment