aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-28 16:01:33 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-28 16:01:33 -0500
commit15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607 (patch)
tree61ac299f264188df92eb79f6edaed618d8ca8654
parentaf34e901c35e5e453465c0c232eaa04d019a9852 (diff)
downloadexternal_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.tar.gz
external_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.tar.bz2
external_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.zip
Include distutils in modules hidden
-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))