def check_dependencies_remote ( args ) : cmd = [ args . python , '-m' , 'depends' , args . requirement ] env = dict ( PYTHONPATH = os . path . dirname ( __file__ ) ) return subprocess . check_call ( cmd , env = env )
how to check all dependencies of a python script
Invoke this command on a remote Python .
def check_dependencies_remote(args):
    """
    Invoke this command on a remote Python.
    """
    cmd = [args.python, '-m', 'depends', args.requirement]
    env = dict(PYTHONPATH=os.path.dirname(__file__))
    return subprocess.check_call(cmd, env=env)