>>> On 11/7/2007 at 4:12 PM, in message <[EMAIL PROTECTED]>, "Bernard Li" <[EMAIL PROTECTED]> wrote: > Hi Brad: > > On 11/7/07, Brad Nicholes <[EMAIL PROTECTED]> wrote: > >> I am not sure that precompiling the .pyc file is necessary. Are you worried > about just being able to remove the .pyc's on an uninstall? Because > compiling the .py at start up vs. > > Yes, that's one of my concern -- uninstalling the > ganglia-gmond-modules-python RPM will leave .pyc cruft in that > directory. > >> precompiling really has no noticeable difference. I'm also not sure if > precompiling the .py's will tie them to a specific python version. If so > then the precompiled packaged version might not work if it was precompiled > using one version of python and executed using a different version. > > Well, I don't see this as being an issue. RPMs built on CentOS 5 is > not meant to be installed on CentOS 4 irregardless of whether the > Python versions are the same, or not. >
I guess the scenario that I am a little more worried about is the one where the expected version of python was installed with the OS. But for whatever reason the user decided to upgrade to a newer python and then later they installed Ganglia. Ganglia might not work in that instance because the precompiled .pyc files don't match their version of python. The would have to know to manually remove the .pyc files and allow the newer version of python to recreate them. Wouldn't it make more since to just remove all .pyc files from the python_module directory during the uninstall section of the spec file. Ganglia already owns this directory and can probably safely assume that on an uninstall, anything in that directory can be removed. Brad ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

