File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 144144 [This simply sSets $PYMUPDF_SETUP_PY_LIMITED_API, which is used by
145145 PyMuPDF/setup.py.]
146146
147+ --show-args:
148+ Show sys.argv and exit. For debugging.
149+
147150 --sync-paths
148151 Do not run anything, instead write required files/directories/checkouts
149152 to stdout, one per line. This is to help with automated running on
@@ -278,6 +281,7 @@ def main(argv):
278281 pyodide_build_version = None
279282 pytest_options = ''
280283 pytest_prefix = None
284+ show_args = False
281285 show_help = False
282286 sync_paths = False
283287 system_site_packages = False
@@ -388,6 +392,8 @@ def main(argv):
388392 assert _value in ('0' , '1' ), f'`-s` must be followed by `0` or `1`, not { _value = } .'
389393 env_extra ['PYMUPDF_SETUP_PY_LIMITED_API' ] = _value
390394
395+ elif arg == '--show-args' :
396+ show_args = 1
391397 elif arg == '--sync-paths' :
392398 sync_paths = True
393399
@@ -439,6 +445,12 @@ def main(argv):
439445 print (__doc__ )
440446 return
441447
448+ if show_args :
449+ print (f'sys.argv ({ len (sys .argv )} ):' )
450+ for arg in sys .argv :
451+ print (f' { arg !r} ' )
452+ return
453+
442454 if os_names :
443455 if platform .system ().lower () not in os_names :
444456 log (f'Not running because { platform .system ().lower ()= } not in { os_names = } ' )
You can’t perform that action at this time.
0 commit comments