diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-24 11:49:11 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-24 11:49:11 -0500 |
commit | 57d450a4e0485c8c9db04a5b6d02615c3798f418 (patch) | |
tree | e0c417809760332550e40799df274261fc11c273 /setuptools/sandbox.py | |
parent | e7f9dab06dc2515fe11e7f31ea948eed5e141470 (diff) | |
download | external_python_setuptools-57d450a4e0485c8c9db04a5b6d02615c3798f418.tar.gz external_python_setuptools-57d450a4e0485c8c9db04a5b6d02615c3798f418.tar.bz2 external_python_setuptools-57d450a4e0485c8c9db04a5b6d02615c3798f418.zip |
Also hide Cython when hiding setuptools, as setuptools will have imported Cython and Cython references the distutils.Extension. Fixes #488.19.6b1
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-x | setuptools/sandbox.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 668bcac7..23e296b1 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -207,8 +207,12 @@ def _needs_hiding(mod_name): True >>> _needs_hiding('distutils') True + >>> _needs_hiding('os') + False + >>> _needs_hiding('Cython') + True """ - pattern = re.compile('(setuptools|pkg_resources|distutils)(\.|$)') + pattern = re.compile('(setuptools|pkg_resources|distutils|Cython)(\.|$)') return bool(pattern.match(mod_name)) |