diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-28 16:01:33 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-28 16:01:33 -0500 |
commit | 15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607 (patch) | |
tree | 61ac299f264188df92eb79f6edaed618d8ca8654 | |
parent | af34e901c35e5e453465c0c232eaa04d019a9852 (diff) | |
download | external_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.tar.gz external_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.tar.bz2 external_python_setuptools-15d7d87013e9c95f1e343ab7fee3d7f2bbd1d607.zip |
Include distutils in modules hidden
-rwxr-xr-x | setuptools/sandbox.py | 4 |
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)) |