From 1d74aaab3372b6727158802c610043ca036ce5d3 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 13 Dec 2015 11:29:01 -0500 Subject: Always import for SandboxViolation so it's pickleable. Ref #440. --- setuptools/sandbox.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setuptools/sandbox.py') diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index b8b1bac1..85de85ff 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -384,6 +384,7 @@ class DirectorySandbox(AbstractSandbox): AbstractSandbox.__init__(self) def _violation(self, operation, *args, **kw): + from setuptools.sandbox import SandboxViolation raise SandboxViolation(operation, args, kw) if _file: -- cgit v1.2.3