# print('%s is already installed on %s' % (package,rhost)) #XXX: could parse 'error' for "ImportError" ==> not installed #XXX: could use command="python -c 'import X; X.__version__'" #XXX ...returns version# or "AttributeError" ==> non-standard version tag else: print(error) sleep(delay) # create install directory command = 'mkdir -p %s' % dest #FIXME: *nix only report = execute(command,rhost).response() #XXX: could check for clean install by parsing for "Error" (?) sleep(delay) # copy over the installer to remote host copy(file,rhost,dest) sleep(delay) # run the installer command = 'cd %s; ./%s' % (dest,file) #FIXME: *nix only report = execute(command,rhost).response() #XXX: could check for clean install by parsing for "Error" (?) sleep(big_delay) # remove remote install file # killme = dest+'/'+file #FIXME: *nix only # command = 'rm -f %s' % killme #FIXME: *nix only # execute(command,rhost).response() # remove remote package unpacking directory # killme = dest+'/'+package+'-'+version #FIXME: dies for NON-STANDARD naming
# print('%s is already installed on %s' % (package,rhost)) #XXX: could parse 'error' for "ImportError" ==> not installed #XXX: could use command="python -c 'import X; X.__version__'" #XXX ...returns version# or "AttributeError" ==> non-standard version tag else: print(error) sleep(delay) # create install directory command = 'mkdir -p %s' % dest #FIXME: *nix only report = execute(command,rhost).response() #XXX: could check for clean install by parsing for "Error" (?) sleep(delay) # copy over the installer to remote host copy(file,rhost,dest) sleep(delay) # run the installer command = 'cd %s; ./%s' % (dest,file) #FIXME: *nix only report = execute(command,rhost).response() #XXX: could check for clean install by parsing for "Error" (?) sleep(big_delay) # remove remote install file # killme = dest+'/'+file #FIXME: *nix only # command = 'rm -f %s' % killme #FIXME: *nix only # execute(command,rhost).response() # remove remote package unpacking directory # killme = dest+'/'+package+'-'+version #FIXME: dies for NON-STANDARD naming