Skip to content

Commit 27b7d4e

Browse files
committed
Only rely on pep420 for Python 3.3 and 3.4 where method_from_spec isn't available.
1 parent 17f72f5 commit 27b7d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/namespaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _get_target(self):
3636

3737
_nspkg_tmpl = (
3838
"import sys, types, os, importlib.util, importlib.machinery",
39-
"pep420 = sys.version_info > (3, 3)",
39+
"pep420 = (3, 3) < sys.version_info < (3, 5)",
4040
"has_mfs = sys.version_info > (3, 5)",
4141
"p = os.path.join(%(root)s, *%(pth)r)",
4242
"ie = os.path.exists(os.path.join(p,'__init__.py'))",

0 commit comments

Comments
 (0)