summaryrefslogtreecommitdiff
path: root/setuptools/errors.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-24 16:40:40 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-24 16:40:40 -0400
commit7306811598b51bfe726850ce4b061a6e389d5b80 (patch)
tree907882aecc017d26f925f70d003371124a507d0f /setuptools/errors.py
parent8f1f09b7f93f2fa86bafcd6502ec51d4680b4499 (diff)
parent52c394c1e87b863aec92949e4b494ab01a7cd234 (diff)
downloadpython-setuptools-git-7306811598b51bfe726850ce4b061a6e389d5b80.tar.gz
Merge branch 'master' into docs_ci
Diffstat (limited to 'setuptools/errors.py')
-rw-r--r--setuptools/errors.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/setuptools/errors.py b/setuptools/errors.py
new file mode 100644
index 00000000..2701747f
--- /dev/null
+++ b/setuptools/errors.py
@@ -0,0 +1,16 @@
+"""setuptools.errors
+
+Provides exceptions used by setuptools modules.
+"""
+
+from distutils.errors import DistutilsError
+
+
+class RemovedCommandError(DistutilsError, RuntimeError):
+ """Error used for commands that have been removed in setuptools.
+
+ Since ``setuptools`` is built on ``distutils``, simply removing a command
+ from ``setuptools`` will make the behavior fall back to ``distutils``; this
+ error is raised if a command exists in ``distutils`` but has been actively
+ removed in ``setuptools``.
+ """