Bruce Dubbs wrote: >> (Near as I can tell, that means: Unzip >> /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r4679-py2.4.egg, >> apply the patch, possibly regenerate .pyc files, zip the result, >> replace the original .egg file, and perhaps restart Apache.) Please? >> :-) > > IIRC, the way Python works is that it compares the timestamp of the > .py module against the .pyc module and if the former is more recent, > recompiles automatically.
Great! How does that work with a .egg file though? It can't modify the
.pyc inside the archive -- or at least, not easily. (Hmm...)
> The patch is quite simple -- two lines added and one modified.
Yeah, but I'd skip the line that was modified (unsure what it does, and
it's not needed to get the MessageWrapper-as-a-string part to work).
But either way.
> I took a look and could update the file manually if I knew which file.
> Right now I see four candidates:
>
> /root/accountmanager/acct_mgr/web_ui.py
> /root/accountmanager/build/lib/acct_mgr/web_ui.py
> /root/accountmanagerplugin/trunk/acct_mgr/web_ui.py
> /root/accountmanagerplugin/trunk/build/lib/acct_mgr/web_ui.py
Well, I can see in the Apache config that the wiki.lfs.org/lfs/* URLs
are handled in some special way, by the mod_python setup. The base
Python class to use for all of them is given there as well. However, I
don't think it will look in root's home directory for the file; I think
it only looks in /usr/lib/python2.4{,/site-packages} and subdirectories.
(That's where I found the .egg file referred to earlier, which contains
the web_ui.py that's broken.)
> They are all identical, but are all regular files (no links).
> The dates would indicate to me that the first two are the most likely.
It looks like the first pair of files is from an SVN checkout, based on
the fact that there's a /root/accountmanager/.svn directory. ;-)
This is a complete and utter guess, but I would *suspect* that
/root/accountmanagerplugin was an extracted version of
/root/accountmanagerplugin-trunk.zip (likely an SVN snapshot from around
Dec 4); /root/accountmanager seems to be a checkout of the SVN repo
where it's actually stored. The TracAccountManager-<version>.egg files
in the same directory are probably the built versions.
Based on this, I would *suspect* that you'd have to modify
/root/accountmanager/acct_mgr/web_ui.py, then (somehow) rebuild the .egg
file, then copy it to /usr/lib/python2.4/site-packages/<wherever> again.
Maybe do some easy_installer stuff as well, I'm unsure.
> I suppose I could update them all. (Update one and copy to the other
> locations.)
Yes, but I doubt any of them are used from there directly. :-)
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
