Skip to content

Commit

Permalink
Require python3
Browse files Browse the repository at this point in the history
In prep for emscripten 2.0.0 require drop support for python2

Fixes: #7198
  • Loading branch information
sbc100 committed Aug 7, 2020
1 parent 42f4492 commit 739fbbb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
import sys
import tempfile

if sys.version_info < (2, 7, 0):
print('emscripten requires python 2.7.0 or above (python 2.7.12 or newer is recommended, older python versions are known to run into SSL related issues, https://github.com/emscripten-core/emscripten/issues/6275)', file=sys.stderr)
sys.exit(1)

if sys.version_info[0] == 3 and sys.version_info < (3, 5):
print('emscripten requires at least python 3.5 (or python 2.7.12 or above)', file=sys.stderr)
if sys.version_info < (3, 5):
print('error: emscripten requires python 3.5 or above', file=sys.stderr)
sys.exit(1)

from .toolchain_profiler import ToolchainProfiler
Expand Down

0 comments on commit 739fbbb

Please sign in to comment.