File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
Expand file tree Collapse file tree 3 files changed +15
-0
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
@@ -726,6 +728,14 @@ def main():
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 = (
736+ "If passed, run -m test.pythoninfo"
737+ ),
738+ )
729739 run .add_argument (
730740 "args" ,
731741 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 = [
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