Default Python 3 for running emsdk (#273)
* Default Python 3 for running emsdk On macOS it's pretty common to hit a problem ``` Error downloading URL 'https://github.com/kripken/emscripten/archive/1.38.25.tar.gz': <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)> ``` When an installation is started. I.e. `./emsdk install sdk-1.38.25-64bit` - this is caused in majority of cases by some problem of openssl and python2 - (some other https downloads work just fine, not sure why GitHub is special) So this Pull Request will default Python to Python 3, for running `emsdk`. It does so by making ./emsdk executable in python, bash, and sh. In bash and sh it will run a python executor script, which picks the best python it can find, preferring python3 on non-windows.
This commit is contained in:
committed by
Alon Zakai
parent
c0e1167aad
commit
a61a528e48
5
emsdk
5
emsdk
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
#!/bin/sh
|
||||
# Following line is responsible for selecting the best python for current host
|
||||
# This script can be called directly: `./emsdk` or indirectly: `python ./emsdk` `sh ./emsdk` or `bash ./emsdk`
|
||||
"exec" "`dirname $0`/python_selector" "$0" "$@"
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user