Skip to content

Commit 2a3566a

Browse files
authored
Switch the #! lines in all .py files to python3 (emscripten-core#10357)
This is one step towards using python3 by default everywhere. Notably: - python2 is still fully supported at this point - The top level scripts such as `emcc` as opposed to `emcc.py` are still run under just "python" so will work with whatever the system default is. This is because we still want to run on the default OSX install which doesn't python3 installed (and probably never will). Also: - switch circleci testing on linux to python3 - Update some docs that refer to python3 See emscripten-core#7198
1 parent dfc667c commit 2a3566a

21 files changed

Lines changed: 22 additions & 22 deletions

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ executors:
1212
EMTEST_DETECT_TEMPFILE_LEAKS: "1"
1313
EMCC_CORES: "4"
1414
EMSDK_NOTTY: "1"
15-
PYTHON_BIN: "python2"
15+
PYTHON_BIN: "python3"
1616
mac:
1717
environment:
1818
EMSDK_NOTTY: "1"

em-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22

33
'''
44
This is a helper tool which is designed to make it possible

emar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2016 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

embuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2014 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2011 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emcmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2016 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emconfigure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2016 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emlink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2013 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
# Copyright 2016 The Emscripten Authors. All rights reserved.
33
# Emscripten is available under two separate licenses, the MIT license and the
44
# University of Illinois/NCSA Open Source License. Both these licenses can be

emscons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
"""Wrapping the scons invocation, EMSCRIPTEN_TOOL_PATH is set in the process
33
environment, and can be used to locate the emscripten SCons Tool.
44

0 commit comments

Comments
 (0)