Commit Graph

1108 Commits

Author SHA1 Message Date
Sam Clegg
cf01b11c4e Fix for default NODE_JS in config file (#369)
This was broken in #362
2019-10-09 11:33:15 -07:00
Sam Clegg
6ab7f5829a Cleanup emsdk.py (#362)
- Remove some unneeded use of `global` keyword
- Use OrderedDict
- Add exit_with_error helper
- Remove SPIDERMONKY_ENGINE from emscripten config
2019-10-07 17:02:15 -07:00
Hills
29ad7fab7b Add a warning on old Python SSL/TLS certificates (#354)
The OSX message is [SSL: CERTIFICATE_VERIFY_FAILED] while trying to download files.
While, the Linux Python message is less descriptive.
Error downloading URL 'https://xxxx.xxx.xxx': <urlopen error unknown url type: https>.

This hopefully reduces the stream of common issues raised during installation as a result of the change of Python TLS certs to 2048 or greater.
This change relates to  #133 #136 #140 #176 #6275 #6548 #6723 #9036 … and possibly more.

Installation can be accomplished by installing the latest Python certificates (pip install certifi), symbolic linking a new python version, and relying on the python shebang line to run $ ./emsdk.py install latest.
2019-10-07 14:08:53 -07:00
Alon Zakai
9ed207099a 1.38.47 (#364) 2019-10-02 14:16:21 -07:00
Alon Zakai
41adfea99d 1.38.46 (#361) 2019-09-25 13:12:26 -07:00
Alon Zakai
a6c8e25a59 Remove some mozilla-games remnants (#360)
Remove obsolete docs links.

Remove downloading of the old releases list, and bundle the file in the repo.

Also the message in update-tags was wrong: we need git to do anything there now, as update-tags gets emscripten-releases using git currently (which is ok as update-tags is run by users that installed with git; otherwise they installed without git and just update the entire emsdk normally).
2019-09-23 10:37:49 -07:00
Sam Clegg
252410a7e8 Handle missing downloads gracefully (#353)
Previously we were asserting and generating a stack track if a
download failed.  However the assert is only relevant if the download
succeeds.

Also:

- Remove an unused function
- Remove extra braces from tuple destructuring
2019-09-13 14:53:04 -07:00
Sam Clegg
26b160a575 Add 1.38.45 (#352) 2019-09-12 13:54:18 -07:00
Alon Zakai
845f7e8d35 1.38.44 (#351) 2019-09-11 09:39:23 -07:00
Sam Clegg
efc64876db Update node version to 12.9.1 (#348)
Turns out 10.16.3 has issues running some emscripten tests due to a
v8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=8347.
2019-09-03 12:16:46 -07:00
Sam Clegg
2dd05dca80 reland: Update default node version to 10.16.3 (#341)
Original change that got reverted: #331

See https://github.com/emscripten-core/emscripten/issues/9332
2019-08-30 12:46:41 -07:00
Sam Clegg
8f6fc5011f Re-enable tests on mac after emscripten roll (#347) 2019-08-30 10:16:35 -07:00
Alon Zakai
8a2e65a488 1.38.43 (#346) 2019-08-30 09:54:50 -07:00
Sam Clegg
62c8a093f7 Add status badge (#343) 2019-08-29 15:04:06 -07:00
Sam Clegg
3418c69437 Be more precise about which tests are disabled on macOS due to timestamp issue (#342) 2019-08-29 14:03:32 -07:00
Sam Clegg
40495c0a31 Fix a bunch of flake8 warnings (#239)
Now that we have much better testing in CI this kind of change
should be much easier to make with confidence.
2019-08-29 12:15:39 -07:00
Sam Clegg
880be59788 Add circleci config with mac, windows and linux testing (#338)
- Add EMSDK_NOTTY variable which we can use on CI to prevent tty output.
- Add test.bat for windows which mirrors test.sh.
- Remove travis support
2019-08-29 00:35:36 -07:00
Sam Clegg
80f490f749 Fix powershell file association after emsdk script rename (#340)
See #292

Fixes #336
2019-08-28 17:29:10 -07:00
Sam Clegg
f285fdbb0c Revert "Update default node version to 10.16.3 (#331)" (#339)
Apparently this broke on mac: #337
2019-08-28 16:16:01 -07:00
Sam Clegg
f68effe57e Update flake8 and fix warnings in .py files (#334) 2019-08-28 15:15:38 -07:00
Alon Zakai
7179fac39b Set EMSCRIPTEN_ROOT in releases builds (#333)
Without setting this, if a non-releases build was previously activated, it will keep affecting EMSCRIPTEN_ROOT in the emitted config file.

Helps with #326
2019-08-28 11:20:14 -07:00
Sam Clegg
ef0699a936 Remove old exe file (#332)
The use of this tool was removed in 9e68e895bd
2019-08-27 14:54:20 -07:00
Sam Clegg
a562ff7bda Use a wrapper script for running emsdk.py (#292)
This change moves the python code for emsdk into a file ending in .py.
This script is then run via emsdk.bat on windows or emsdk (a shell
script) on non-windows.

This avoid the #!/bin/sh at the top of the python script and the "exec"
hack on the first line that re-runs it under python.  Hopefully this
preserves the intent of #273 without jumping through so many hoops.
2019-08-27 14:02:50 -07:00
xcodebuild
5c93ca29bd Fix python3 issue in macOS logic (#327)
Fixes iodide-project/pyodide#84
2019-08-27 13:22:50 -07:00
Sam Clegg
7bc47b7232 Update default node version to 10.16.3 (#331)
See https://github.com/emscripten-core/emscripten/issues/9332
2019-08-27 13:02:02 -07:00
Sam Clegg
5dd09e4893 Convert emsdk_manifest.json to unix line endings (#330) 2019-08-27 11:47:57 -07:00
Thomas Lively
1ea9c326a3 Remove extraneous arguments to construct_env (#328)
The code for construct_env expects the output file to be at `argv[2]`,
but it is actually invoked in emsdk_env.{sh,fish} with $@ there
instead. Usually this is not a problem because the emdsk_env.{sh,fish}
is `sourced` directly from the user's shell and $@ is empty, but this
can break in scripted environments.

The $@ was added two years ago in 3b6c6b86 for no discernible reason,
but it was entirely ignored in the code until last month when #307
added a meaningful argument to construct_env but incorrectly kept the
$@.
2019-08-27 09:42:36 -07:00
Sam Clegg
596bdc5ea4 Fix file permissions when extracting zip files (#325)
This means that `./emsdk` works on UNIX system after emsdk self-updates
from a zip file.  Without this one would need to run `python ./emsdk`
which seems to be why the tests were doing it this way.
2019-08-26 23:06:56 -07:00
Alon Zakai
da4900b83f Always download archives, since we delete them after use anyhow. This prevents using archives left behind by mistake in the past. (#324)
Fixes #323
2019-08-21 13:42:09 -07:00
Alon Zakai
6a4c0f981d Properly clean up downloaded zips (#322)
We got this wrong because we were not using get_download_target, so we were trying to delete the wrong file.

Also add a test.

Fixes #320
2019-08-20 12:26:44 -07:00
Alon Zakai
64c5e81772 [windows] Replace python2-specific error handling with a check that works in python3 as well (#300)
Fixes #298
2019-08-19 14:51:35 -07:00
Alon Zakai
9f9d8c074c 1.38.42 (#321) 2019-08-19 14:36:20 -07:00
Alon Zakai
d92a831fc9 tidy up a comment (#315) 2019-08-19 14:00:24 -07:00
Alon Zakai
d94e9fbc89 1.38.41 (#317) 2019-08-07 10:39:51 -07:00
Alon Zakai
07536cd127 List all archive suffixes properly, so we clean up all downloaded archives (#316)
Implements what @juj suggested here: #274 (comment)

After this, the behavior should consistently be: archives are downloaded, unpacked, then deleted immediately. Another install of the same thing will re-download.
2019-08-06 13:00:20 -07:00
James Calo
e4c7185a1c Fix issue with windows install (#310)
Windows version of python 3 returns platform.machine() in upper case for AMD64 which wasn't being checked for so added .lower().

Doesn't affect Linux python3 which already worked.
2019-08-06 09:20:46 -07:00
Brion Vibber
2b568055af Basic ARM and Aarch64 support for emsdk (#277)
This adds an "arch" field to various structures, so ARM and Aarch64
Linux can download appropriate versions of node and in theory
other tools, without trying to download x86 builds.

Since there are no prebuilt packages for clang and binaryen on ARM
or Aarch64 this will require building them, which can take a long
time, but works once installed.

Node 4.1.1 and 8.9.1 entries for ARM (armv7l) and aarch64 are
added, and the various x86/x86_64-only things are marked as such
to be filtered out on ARM machines.

Other downloads work as long as they don't have an arch specified,
which indicates they're expected to be arch-independent.

Does not yet fully work on ARM64 Windows (but works in WSL as the
Linux support is fine).
2019-08-02 15:14:11 -07:00
Zoltan Varga
e2110d8816 Avoid file creation/deletion races in emsdk_env.sh by using a temporary file(#307)
Fixes https://github.com/emscripten-core/emscripten/issues/9090.
2019-07-26 16:50:10 -07:00
Roman Petrov
aa2812b8ba Fix 'SendMessage' hanging on Windows (#301)
Use PostMessage instead.
2019-07-25 19:49:08 -07:00
Alon Zakai
599e17d9ea 1.38.40 (#304) 2019-07-24 13:34:19 -07:00
Alon Zakai
a51302ba20 1.38.39 (#302) 2019-07-16 13:17:56 -07:00
Eric Kilmer
4a0f6a264e Support ninja build tool (#261)
The user can choose which CMake generator to use by passing the --generator option, e.g. --generator=Ninja or --generator="Unix Makefiles" to emsdk.

Default on *nix systems is Unix Makefiles
2019-07-15 17:10:31 -07:00
Alon Zakai
4965260505 1.38.38 (#296) 2019-07-08 20:29:04 -07:00
Thomas Lively
35cd9268f0 Back up overwritten configuration files (#295) 2019-07-03 16:11:00 -07:00
Alon Zakai
c3f0e0fc0d Fix windows bug with move erroring if the target exists, so installing a second time fails (#294)
Fixes #286
2019-07-03 15:30:01 -07:00
Alon Zakai
d33f7a2900 Extra testing for library building (#291)
Verify the latest things we've started to ship pre-built (libc, struct_info, optimizer) are in fact not built on the user's machine.
2019-06-26 13:13:48 -07:00
Alon Zakai
58aad76461 fix old tests (#283)
The tests for older versions had some copy-paste stuff, that meant we didn't fully test activating them.
2019-06-26 12:45:51 -07:00
Alon Zakai
4a104699d5 1.38.37 (#290) 2019-06-26 10:55:51 -07:00
Alon Zakai
f1998bb124 Use the bundled optimizer[.exe], which the releases builds contain already (#289) 2019-06-25 18:02:50 -07:00
HaRold
056ce6f64d Exclude fastcomp and releases in .gitignore (#285)
Fixes https://github.com/emscripten-core/emsdk/issues/284
2019-06-25 13:33:14 -07:00