summaryrefslogtreecommitdiff
path: root/setuptools/errors.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-03-21 05:55:44 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-03-21 05:55:44 -0400
commitcfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7 (patch)
tree1551248b2a29b34b26388ea68fe994854f3e84e2 /setuptools/errors.py
parent7843688bc33dd4e13e10130bc49da4c290fe7d7f (diff)
parent060445bfb557a1d0f6b726716dafa6bacaa44c34 (diff)
downloadpython-setuptools-git-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.gz
Merge branch 'master' into jorikdima-master
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``.
+ """