Skip to content

Commit 6086782

Browse files
committed
Fixed an issue with incorrect checking of a valid Python 3 interpretator // Resolve #9
1 parent cccc63f commit 6086782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function isCompatiblePython(executable) {
171171
'assert sys.platform != "cygwin"',
172172
'assert not sys.platform.startswith("win") or not any(s in sys.executable.lower() for s in ("msys", "mingw", "emacs"))',
173173
'assert not sys.platform.startswith("win") or os.path.isdir(os.path.join(sys.prefix, "Scripts"))',
174-
'assert sys.version_info >= (2, 7, 5) or sys.version_info >= (3, 5)'
174+
'assert (sys.version_info >= (2, 7, 5) and sys.version_info < (3,)) or sys.version_info >= (3, 5)'
175175
];
176176
if (IS_WINDOWS) {
177177
pythonLines.push('assert sys.version_info >= (2, 7, 9)');

0 commit comments

Comments
 (0)