aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 8aa58f8d..f124289a 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -1,7 +1,7 @@
import os, sys, __builtin__, tempfile
_os = sys.modules[os.name]
_open = open
-
+from distutils.errors import DistutilsError
__all__ = [
"AbstractSandbox", "DirectorySandbox", "SandboxViolation", "run_setup",
]
@@ -188,7 +188,7 @@ class DirectorySandbox(AbstractSandbox):
return (src,dst)
-class SandboxViolation(RuntimeError):
+class SandboxViolation(DistutilsError):
"""A setup script attempted to modify the filesystem outside the sandbox"""
def __str__(self):