diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-07 21:38:16 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-07 21:38:16 -0500 |
| commit | 27b7d4e47a4d80f5f377cefb87f91aa0e0110246 (patch) | |
| tree | 41fadabafdc65f0a151053a2f9cdcf552052a85c | |
| parent | 17f72f5bc7031accc037b377ced5a0b411520bfb (diff) | |
| download | python-setuptools-git-27b7d4e47a4d80f5f377cefb87f91aa0e0110246.tar.gz | |
Only rely on pep420 for Python 3.3 and 3.4 where method_from_spec isn't available.
| -rwxr-xr-x | setuptools/namespaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py index 2399dae5..ce16286f 100755 --- a/setuptools/namespaces.py +++ b/setuptools/namespaces.py @@ -36,7 +36,7 @@ class Installer: _nspkg_tmpl = ( "import sys, types, os, importlib.util, importlib.machinery", - "pep420 = sys.version_info > (3, 3)", + "pep420 = (3, 3) < sys.version_info < (3, 5)", "has_mfs = sys.version_info > (3, 5)", "p = os.path.join(%(root)s, *%(pth)r)", "ie = os.path.exists(os.path.join(p,'__init__.py'))", |
