On Wed, Apr 27, 2011 at 1:07 PM, Krishnakant Mane <[email protected]> wrote: > Well I have rpm and deb users so that narrows the possibilities and the > variations I will have to do. > I never made a post install script so don't have exact idea. > And I don't know if I can put the same functionality in the setup.py file so > that the sample file you provided can be put to use with alterations? > may be get it coppyed to a location like /etc or so?
The installer doesn't run setup.py. You run setup.py and create a directory corresponding to the files you want to put under / . I guess you can manually copy the conf file into it, and then you wouldn't need a postinstall script. Then you create the control directory or file, which contains the package's settings and install scripts. Somewhere in there you'd mark the conf file as a "configuration file" so that on upgrade, if it finds any user-added changes, it'll ask the user whether to keep them. (Dpkg has this feature, so I assume rpm has it too.) Then you run the package builder to make a package out of the directory. All this implies you'd have to put the virtualenv in a system directory. I don't know where it would belong, maybe under /usr/share? When vendors distribute third-party applications for Linux, they generally install to /opt. So that would be another place. But if you want it to run under the system's Supervisor, you'd have to put the config file under /etc. (Or make a symlink to it in a postinstall script.) On Wed, Apr 27, 2011 at 11:05 AM, Krishnakant Mane <[email protected]> wrote: > Can I use this same superwise tool for running a python twisted program as > well? I assume yes. It just runs a shell command in a subprocess, optionally redirecting the output. It doesn't make any assumptions about what the command does, so it should work with all Python and non-Python programs. -- Mike Orr <[email protected]> -- Mike Orr <[email protected]> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
