From: Casey D. <ca...@st...> - 2004-01-31 17:54:27
|
I'm using jython to write a number of utility scripts on a common machine. Each time a non-root person runs a given script the sys-package-mgr had some commentary on processing a new jar, not being to write to the repository, and not being able to write the index. To avoid this I've opened up the permissions on the cache directory and the registry file. I expect that as long as my jars have explicit version names I won't have any sort of collision. I am wondering what the accepted practice is for multiple users? Is there some switch for turning off the warnings about caching the jars? I am a bit worried about the permissions, and can take the speed hit. Casey -- Casey Dunn ca...@st... 650-723-3497 Pine Hall, 117d |
From: Oti <oh...@ya...> - 2004-02-07 00:29:29
|
[ Casey Dunn ] > I'm using jython to write a number of utility scripts on a common > machine. > > Each time a non-root person runs a given script the sys-package-mgr > had > some commentary on processing a new jar, > not being to write to the repository, and not being able to write the > > index. To avoid this I've opened up the permissions on > the cache directory and the registry file. > > I expect that as long as my jars have explicit version names I won't > have any sort of collision. > > I am wondering what the accepted practice is for multiple users? > > Is there some switch for turning off the warnings about caching the > jars? I am a bit worried about the permissions, and > can take the speed hit. The latest version allows you to set python.cachedir.skip = true to disable the package scan (if you need it in 2.1, have a look at PySystemState.java in the CVS). However, you then might have to use sys.add_package() - or another sys.add_ function - in your scripts if you want to import from those jars. With package scan disabled, I never ran into a problem with multiple users. Best wishes, Oti. |
From: Casey D. <ca...@st...> - 2004-02-11 18:27:47
|
Oti wrote: >[ Casey Dunn ] > > >>I'm using jython to write a number of utility scripts on a common >>machine. >>[snip] >>Is there some switch for turning off the warnings about caching the >>jars? I am a bit worried about the permissions, and >>can take the speed hit. >> >> > >The latest version allows you to set > python.cachedir.skip = true >to disable the package scan (if you need it in 2.1, have a look at >PySystemState.java in the CVS). > >However, you then might have to use sys.add_package() - or another >sys.add_ function - in your scripts if you want to import from those >jars. > >With package scan disabled, I never ran into a problem with multiple >users. > >Best wishes, >Oti. > > > > You and Jeff have been very helpful - thanks! -- Casey Dunn ca...@st... 650-723-3497 Pine Hall, 117d |