I have several scripts that had their own copy of some functions, so I extracted these functions into a module and asked the scripts to import this function. These scripts must be copied to a bunch of Linux servers and executed. When the scripts worked autonomously, I would just copy the files to the servers and execute "python".
I have a central management server that will copy and run scripts on different servers.
I read about python eggs, but could use some tips on the method to go for. The way I do it today is to copy and just run a python script. Since this works fine, I thought maybe there is a way to link the scripts themselves to the internal module on which they depend, copy the package to the servers and execute them. I donβt understand why I need to install anything using "pip".
Now, what setting would you recommend? Do I have to build eggs on my local computer and does the management server copy the egg file to the servers? I would prefer to copy everything the server needs from the management server, instead of the servers pulling the dependencies themselves, so I donβt have to punch more holes for all the firewalls. Since eggs usually need to stretch addictions, maybe eggs are not the way to go?
Most of my servers run python 2.6, but I have some running python 2.4 and 3.2.
Hi Kenneth
source share