File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 6868 run : python3 Platforms/emscripten configure-host --host-runner node -- --config-cache
6969 - name : " Make host Python"
7070 run : python3 Platforms/emscripten make-host
71+ - name : " Display build info"
72+ run : python3 Platforms/emscripten run --pythoninfo
7173 - name : " Test"
7274 run : python3 Platforms/emscripten run --test
Original file line number Diff line number Diff line change @@ -591,6 +591,8 @@ def run_emscripten_python(context):
591591
592592 if context .test :
593593 args = load_config_toml ()["test-args" ] + args
594+ elif context .pythoninfo :
595+ args = load_config_toml ()["pythoninfo-args" ] + args
594596
595597 os .execv (str (exec_script ), [str (exec_script ), * args ])
596598
@@ -722,10 +724,16 @@ def main():
722724 action = "store_true" ,
723725 default = False ,
724726 help = (
725- "If passed, will add the default test arguments to the beginning of the command. "
727+ "Add the default test arguments to the beginning of the command. "
726728 "Default arguments loaded from Platforms/emscripten/config.toml"
727729 ),
728730 )
731+ run .add_argument (
732+ "--pythoninfo" ,
733+ action = "store_true" ,
734+ default = False ,
735+ help = "Run -m test.pythoninfo" ,
736+ )
729737 run .add_argument (
730738 "args" ,
731739 nargs = argparse .REMAINDER ,
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ test-args = [
1111 " --single-process" ,
1212 " -W" ,
1313]
14+ pythoninfo-args = [
15+ " -m" , " test.pythoninfo" ,
16+ ]
1417
1518[dependencies .libffi ]
1619url = " https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz"
You can’t perform that action at this time.
0 commit comments