Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 2 .github/workflows/reusable-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ jobs:
run: python3 Platforms/emscripten configure-host --host-runner node -- --config-cache
- name: "Make host Python"
run: python3 Platforms/emscripten make-host
- name: "Display build info"
run: python3 Platforms/emscripten run --pythoninfo
- name: "Test"
run: python3 Platforms/emscripten run --test
10 changes: 9 additions & 1 deletion 10 Platforms/emscripten/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ def run_emscripten_python(context):

if context.test:
args = load_config_toml()["test-args"] + args
elif context.pythoninfo:
args = load_config_toml()["pythoninfo-args"] + args

os.execv(str(exec_script), [str(exec_script), *args])

Expand Down Expand Up @@ -722,10 +724,16 @@ def main():
action="store_true",
default=False,
help=(
"If passed, will add the default test arguments to the beginning of the command. "
"Add the default test arguments to the beginning of the command. "
"Default arguments loaded from Platforms/emscripten/config.toml"
),
)
run.add_argument(
"--pythoninfo",
action="store_true",
default=False,
help="Run -m test.pythoninfo",
)
run.add_argument(
"args",
nargs=argparse.REMAINDER,
Expand Down
3 changes: 3 additions & 0 deletions 3 Platforms/emscripten/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ test-args = [
"--single-process",
"-W",
]
pythoninfo-args = [
"-m", "test.pythoninfo",
]

[dependencies.libffi]
url = "https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz"
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.