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
Sam Clegg
d5c77b06a5
Remove python_selector.py in favor of run_python.sh ( #10729 )
...
Ubuntu 20.04 dropped the /usr/bin/python symlink so it is no longer
possible use `/usr/bin/env python` in launcher scripts and then
rely on python_selector.py to select a different python version.
Instead we go back to age-old method of using shell wrapper script.
Here I create a single wrapper script called run_python.sh which
runs a commmand under the best version of python it can find. Each
unsiffixed command is then a symbol link to this shell script. Since
windows users use the .bat files it shouldn't matter whether or not
these symlinks work on windows.
Fixes #10726
2020-03-20 11:23:45 -07:00
Sam Clegg
90642ee048
Fix emrun after recent python_selector change ( #6844 )
2018-07-12 10:13:08 -07:00
Alon Zakai
be97a5152e
fix regression in 1.37.37 from 9a5a9b6224
: configure scripts should be pointed to emcc, not emcc.py, since emcc will pick the right python version. ( #6460 )
2018-04-18 19:13:33 -07:00
Kagami Sascha Rosylight
f067c2ab76
Allow Python 3 ( #5967 )
...
* introduces EMSCRIPTEN_ALLOW_NEWER_PYTHON to allow Python 3
* creates force_python_version.py to conditionally force Python 2
* separates colored logger as colored_logger.py
* uses emcc.py instead of emcc internally
* adds a test
* lets CircleCI test on Python 3 while Travis still tests on Python 2
2018-01-11 12:46:13 -08:00
Zhiming Wang
254aae2286
Resolve symlinks in em* wrapper scripts ( #5534 )
...
When wrapper scripts em* in PATH are symlinks to the actual scripts
installed alongside em*.py (e.g. in the case of a Homebrew
installation), we need to resolve symlinks in order to find em*.py.
2017-08-29 16:41:01 -07:00
Jukka Jylänki
57c18ddf39
Fix emrun to be dual python2/python3 callable. Closes #5211 and #5482 .
2017-08-16 15:15:12 +03:00
Jukka Jylänki
3b3127f55d
Update to latest upstream emrun
2017-08-08 19:37:51 +03:00
Jukka Jylänki
bb54deef58
Update emrun to latest (fixes Windows issue when PyWin32 is not installed)
2017-05-31 17:40:49 +03:00
Jukka Jylanki
1ab6375b74
Update emrun.py to latest version.
2017-05-03 16:23:07 +03:00
Fumiya Chiba
719870b469
Fix emrun android chrome ( #5180 )
...
* Fix chrome activity name
* Comform to latest release channels
2017-04-30 23:51:04 -07:00
Jukka Jylänki
e482a9989e
Update to latest emrun. Disables Firefox safe mode key from being triggered on emrun Firefox process spawns
2016-08-26 15:22:20 +03:00
Jukka Jylänki
dd3b359815
Update to latest version of emrun.
2016-08-10 23:09:39 +03:00
Jukka Jylänki
d82d8206cd
When testing whether to send gzipped content, prepare that 'Accept-Encoding' key might not exist in headers sent by the browser.
2016-05-03 12:22:55 +03:00
Jukka Jylänki
aaddfd96da
Update emrun to latest: strictly detect asm.js validation errors, enable serving pre-gzip-compressed content and improve startup help prints when running with "emrun --no_browser".
2016-05-02 14:20:55 +03:00
Jukka Jylänki
15507088aa
Tune emrun to avoid various Firefox network update checks with the clean profile.
2015-09-07 21:08:08 +03:00
Jukka Jylänki
1217bf6ca8
Have emrun more diligently delete the temporary Firefox profile it created, if at all possible.
2015-09-07 20:41:49 +03:00
Jukka Jylänki
a3dcfdd50c
Fix emrun test script to only call to user_pref() to set prefs (the other directives did not quite work). When building with --emrun, have exit() close the current browser window automatically. Run browser.test_emrun with --safe_firefox_profile.
2015-09-07 20:32:02 +03:00
Jukka Jylänki
2f20ab88da
Set dom.allow_scripts_to_close_windows = true when running Firefox under emrun with --safe_firefox_profile, so that a test page can gracefully close itself without emrun having to forcibly kill it.
2015-09-07 20:11:59 +03:00
Jukka Jylänki
6bf85e754d
Pass -no-remote when running a page with emrun and --safe_firefox_profile in order to not conflict with any existing running Firefox instances.
2015-09-07 20:00:51 +03:00
Jukka Jylänki
0699db96c2
Don't ask the user if he wants to close the browser when multiple tabs are open and running Firefox via emrun.
2015-09-07 16:38:37 +03:00
Jukka Jylänki
f9b23c586b
Set MOZ_DISABLE_AUTO_SAFE_MODE=1 when doing emrun browser runs ( https://bugzilla.mozilla.org/show_bug.cgi?id=745154 ).
2015-09-02 00:27:47 +03:00
Jukka Jylänki
0ef0a7853e
Add new command line option '--safe_firefox_profile' to emrun, which creates a clean temporary profile to run the page in when running in Firefox. Use this option when it's desirable that features requiring human interaction (popup blocker, default browser check, safe mode crash handler, autoresume tabs, auto update, add-ons update, etc.) will not disrupt page execution, but the page should execute unattended. Perfect for automated Firefox runs.
2015-09-02 00:19:04 +03:00
Jukka Jylänki
22b498b14d
Update emrun to latest from @mlimber's commit 5668c52983
.
2015-08-04 19:31:23 +03:00
Jukka Jylänki
005de7dfbc
Upgrade emrun to latest: e698275433
2015-03-17 10:45:45 +02:00
Jukka Jylänki
8f44839389
Update emrun to latest from https://github.com/juj/emrun . Fixes #3234 .
2015-03-13 14:20:26 +02:00
Jukka Jylänki
386e0f810d
Add a help message if user system is missing PyWin32 when running emrun on Windows.
2014-10-21 19:16:53 +03:00
Jukka Jylänki
7025abae48
Update to latest emrun. Update test for that. Fixes #2742 .
2014-09-01 12:13:41 +03:00
Jukka Jylänki
ec118748fe
Add support to emrun to receive binary file dumps, and add a JS function emrun_file_dump() when building with --emrun that performs a data dump back to server. Used e.g. to debug issue #1826 .
2014-07-29 16:37:21 +03:00
Jukka Jylänki
a639bceba1
Linux fixes to emrun. Don't fail if glxinfo is not installed, and look for Chrome in 'google-chrome' executable name as well. Don't fail if browser is not found.
2014-01-03 21:04:29 +02:00
Jukka Jylänki
f4b585968f
Improve emrun browser launch detach detection on linux. Shield log printing with mutex to not interleave multiple prints to same line without a delimiting newline.
2013-12-20 18:38:04 +02:00
Jukka Jylänki
759fdd7411
Fix potential race condition in emrun where the browser was spawned before the web server, and theoretically browser could attempt to load the page before server is even up. Not detected in practice, but could happen.
2013-12-20 18:30:58 +02:00
Jukka Jylänki
fd440e1f87
Remove unneeded newline append in emrun when logging to file.
2013-12-20 18:28:34 +02:00
Jukka Jylänki
3bfe074325
Make emrun executable on linux
2013-12-20 18:05:15 +02:00
Jukka Jylänki
60ce3b1f5e
Add verbose debug print to emrun exit to troubleshoot linux process hang issue when spawning chrome browser.
2013-12-20 17:56:07 +02:00
Jukka Jylänki
5ddcbbc02b
Remove bad print in emrun when the message that arrived out-of-sequence should not have been printed, but queued to be printed later.
2013-12-20 17:54:26 +02:00
Jukka Jylänki
68bc17077e
Support --browser_info and --system_info in emrun when used with --android.
2013-12-19 17:40:43 +02:00
Jukka Jylänki
609715d18f
Add support for listing detected browsers on Android in emrun, when emrun --android --list_browsers is called.
2013-12-19 17:09:09 +02:00
Jukka Jylänki
294688ae62
Require that --browser is used with --android.
2013-12-19 16:55:16 +02:00
Jukka Jylänki
7b2e37c395
Gracefully fail in emrun if adb is not found when running with --android.
2013-12-19 16:52:01 +02:00
Jukka Jylänki
0ae478fb26
Improve emrun usage warning print on when running on Android.
2013-12-19 13:12:07 +02:00
Jukka Jylänki
30035e6e42
Add support for launching Android browsers via emrun. Fix log message print ordering with explicit synchronization.
2013-12-18 15:07:06 +02:00
Jukka Jylänki
9906e87b1b
Add machinery that detects whether a html page was built with --emrun command line flag, and print a warning if not done so.
2013-12-14 01:19:23 +02:00
Jukka Jylänki
8c2708efe5
Added emrun utility that allows running .html files in a browser like they were normal executables. For more information, see https://groups.google.com/forum/#!topic/emscripten-discuss/t2juu3q1H8E .
2013-12-14 01:19:22 +02:00