def pydeps(**args):
_args = args if args else cli.parse_args(sys.argv[<NUM_LIT:1>:])<EOL>inp = target.Target(_args['<STR_LIT>'])<EOL>log.debug("<STR_LIT>", inp)<EOL>if _args.get('<STR_LIT>'):<EOL><INDENT>_args['<STR_LIT>'] = os.path.abspath(_args['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>_args['<STR_LIT>'] = os.path.join(<EOL>inp.calling_dir,<EOL>inp.modpath.replace('<STR_LIT:.>', '<STR_LIT:_>') + '<STR_LIT:.>' + _args.get('<STR_LIT>', '<STR_LIT>')<EOL>)<EOL><DEDENT>with inp.chdir_work():<EOL><INDENT>_args['<STR_LIT>'] = inp.fname<EOL>_args['<STR_LIT>'] = inp.is_dir<EOL>if _args.get('<STR_LIT>'):<EOL><INDENT>del _args['<STR_LIT>']<EOL>exts = externals(inp, **_args)<EOL>print(json.dumps(exts, indent=<NUM_LIT:4>))<EOL>return exts  <EOL><DEDENT>else:<EOL><INDENT>return _pydeps(inp, **_args)<EOL><DEDENT><DEDENT>
Entry point for the ``pydeps`` command.

       This function should do all the initial parameter and environment
       munging before calling ``_pydeps`` (so that function has a clean
       execution path).