summaryrefslogtreecommitdiff
path: root/setuptools/errors.py
diff options
context:
space:
mode:
authorBastian Venthur <bastian.venthur@flixbus.com>2020-02-11 09:55:35 +0100
committerBastian Venthur <bastian.venthur@flixbus.com>2020-02-11 09:55:35 +0100
commit087c3b26eed9b6a8960815c2773edd04b5c91a98 (patch)
treec0b0bf68b6f02980f742611c9232405ab9df299b /setuptools/errors.py
parentc11270aa6bffd8913c6e074f09b9d920c8f19002 (diff)
parenta5dec2f14e3414e4ee5dd146bff9c289d573de9a (diff)
downloadpython-setuptools-git-087c3b26eed9b6a8960815c2773edd04b5c91a98.tar.gz
Merge branch 'master' into fix/1700
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``.
+ """