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, 3 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index f4f9dfec..2216e9a6 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -144,8 +144,10 @@ def _is_setuptools_module(mod_name):
False
>>> is_setuptools_module('setuptools.__init__')
True
+ >>> is_setuptools_module('distutils')
+ True
"""
- pattern = re.compile('(setuptools|pkg_resources)(\.|$)')
+ pattern = re.compile('(setuptools|pkg_resources|distutils)(\.|$)')
return bool(pattern.match(mod_name))