Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Sam Clegg b99ff3e71e
Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
Sam Clegg a85b303873
Require python3 (#11836)
In prep for emscripten 2.0.0 require drop support for python2

Fixes: #7198
2020-08-07 09:41:49 -07:00
Sam Clegg e0702c9e27
Honor EMSDK_PYTHON in `bat` and `sh` launcher scripts (#11611) 2020-07-10 14:06:41 -07:00
osen 71220ab4e3
Minor fix for run_python.sh to work with POSIX sh on FreeBSD. (#11426)
Co-authored-by: Karsten Pedersen <kpedersen@outlook.com>
2020-06-16 08:47:13 -07:00
Egor Suvorov 552223616a
Fix #11005: escape path to Python executable in entry points (#11006) 2020-04-30 17:30:04 -07:00
Sam Clegg 1c6e796687
Stop using symlinks for shell script launchers (#10921)
For windows users that use MINGW the shell scripts as still useful
(preferable to the .bat scripts) but they don't support symlink.

Add a little script for managing these entry points.
This change was mostly mechanically created by running this script.
2020-04-15 10:27:21 -07:00
Tibor Klajnscek a59f91d3c5
Fixed em-config breaking after rename to em-config.py (added executable flag and em-config alias like the rest of the scripts) (#10901) 2020-04-13 12:54:08 -07:00
Sam Clegg 3e52dcc2b6
Fix windows .bat launchers (#10743)
The non-py version of these scripts were converted to shell scripts
in #10729.  The .bat files run python explicitly so can directly
reference .py versions of these scripts.

Also, move em-config to em-config.py to match all the others.
2020-03-20 18:39:06 -07:00
Sam Clegg 2a3566afd4
Switch the #! lines in all .py files to python3 (#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 #7198
2020-02-05 15:27:36 -08:00
Sam Clegg d8929cd432
test_other: Add helper function to verify expected failing commands. NFC. (#8518) 2019-04-30 16:43:33 -07:00
Daniel McNab c60e235279 Replace uses of `eval` (#6069) (#6436)
Adds some custom parsing functions into emcc.py to replace evals.

Also ensures that --js-opts and --llvm-lto are integers

Additionally replaces eval in em-config

Closes #6069
Fixes #4342

Should Fix:

    DenisKolodin/yew#124
    Part of koute/cargo-web#60
    rust-lang/rust#47909
2018-04-30 14:34:09 -07:00
Kagami Sascha Rosylight f043f1913d use print function (#5610)
a step towards python 3 compatibility
2017-10-16 12:47:11 -07:00
Alan Kligman 315f13e5a1 Updated scripts to call python2 directly rather than relying on python symlink pointing to the right place. See PEP394 for details on why this should be OK. 2012-12-19 18:06:48 -05:00
Ehsan Akhgari 2b2add4854 Add the em-config tool
This tool is useful to use in shell scripts, etc in order to access
variables defined in the ~/.emscripten file without depending on the
details on how to read and parse it.
2012-05-14 20:32:56 -04:00