epsilon plugin cache regen & gentoo portage.
Thomas Raschbacher <[email protected]> Wed, 11 Feb 2009 10:09:32 +0100
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------080604050307060005030800
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
hi.
i was updating the divmod packages in gentoo's portage tree and had some
problems with the automatic plugin cache update. (the problem was with
gentoo's sandbox which is the only directory which is not read-only
during compile/install phase. all other attempted write ops cause a
sandbox violation .. fyi ;))
I wrote a small patch for setuphelper.py to disable it using an
environment variable.
I just thought i let this list know and ask if maybe there's some way to
get something like this in the main distribution. (if not i'll just
patch every version of epsilon i add to portage with this patch ;))
Regards
--------------080604050307060005030800
Content-Type: text/plain;
name="epsilon_plugincache_portagesandbox.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="epsilon_plugincache_portagesandbox.patch"
--- epsilon/setuphelper.py.orig 2009-02-11 08:15:39.000000000 +0100
+++ epsilon/setuphelper.py 2009-02-11 08:18:56.000000000 +0100
@@ -21,6 +21,9 @@
def _regeneratePluginCache(pluginPackages):
print 'Regenerating cache with path: ',
pprint.pprint(sys.path)
+ if os.getenv("PORTAGE_PLUGINCACHE_NOOP") != None:
+ print 'Not regenerating plugin cache for portage sandbox usage.'
+ return
from twisted import plugin
for pluginModule in pluginModules([
p + ".plugins" for p in pluginPackages]):
--------------080604050307060005030800
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline