0

I have a python script install.py on 20 different machines. I update this script and push it to download.acme.com after every tested change. Before we start a bigger rollout, what's the most effective way for a new version of this script to check if a newer version of itself exists? Also is scp the best way to distribute newer versions of software to people?

\\ Check for newer version (ftp? ssh?) download = input("Newer version available! Download? (y/n)")

if(download == 'y'): scp bob@download.acme.com:~/install.py ~/install.py

  • http://stackoverflow.com/questions/237079/how-to-get-file-creation-modification-date-times-in-python – kylieCatt Oct 31 '14 at 17:52
  • If the script is on a remote machine is that the most effective way? – AmericanKryptonite Oct 31 '14 at 17:56
  • I'm experimenting with [devpi](http://doc.devpi.net/latest/) to solve this problem for my company. It sets up a pypi cache and then lets you add internal packages in a staged manner. You package your script via setup.py (increment the micro version number each time) and upload it to a development index. Risk tolerant users can configure pip to use this pypi index. When it works, it can be pushed to a stable index for others. – tdelaney Oct 31 '14 at 17:57

0 Answers0