![]() |
How to install python docs on n900?
How do you install the python documentation (Python2.5 or maybe 2.7)?. apt-get can't find python2.5-docs (correct name?). Some help features are missing without docs installed.
|
Re: How to install python docs on n900?
Quote:
Code:
$ apt-cache search python doc |
Re: How to install python docs on n900?
maybe this will help to
http://talk.maemo.org/showthread.php?t=61981 |
SOLVED (I think)
OK, the correct name for the package is "python2.5-doc". It's
a separate package from the main python2.5 pkg, and appears to be absent from the main Maemo repos. @saponga: Thanks for the apt-cache search tip, which I hadn't used; the resulting list, it appears, has no entries for python2.5 general docs. "apt-get install python2.5-doc" sympathetically says it knows about the package, but has no installation candidate. @SHARP66: I think you're saying that docs may be routinely purged (by /usr/sbin/docpurge) during package installations and can be re-installed; in the case of Python2.5, though, Maemo may simply not have the docs to install in the first place. The pymaemo package creators may not have known how essential it is (for Python's 'topic' and 'keyword' help facilities) to have certain docs present ('modules' help apparently needs no docs). I will try to make this point to the maintainers, and ask for a (stripped?) python2.5-doc to be added to Maemo's repos. Meanwhile, I manually downloaded a python2.5-doc pkg from snapshot.debian.org (a 2009 version, as the current version requires an updated dpkg, etc.), and installed it with 'dpkg -i <deb_pkg_name>'. To keep docpurge's mitts off of the docs, install them somewhere besides /usr/share/{doc, man, info}, and set the PYTHONDOCS env-variable to your secret spot, or disable (e.g. rename) docpurge (it may also be possible to configure docpurge, a script, to leave Python alone). So far, it works fine (it's just text, after all). It's nearly 17 Mib, but you probably can delete some of it. I think only the "ref" and "lib" folders are needed by the interpreter (but that's still nearly 12 Mib). You can rename the other folders (Xdist, Xdoc, etc.), and eventually, if all seems well, delete them, freeing up 5 Mib. Maybe the ref and lib docs can be installed into a compressed squashfs, which may reduce them to under 3 Mib. |
All times are GMT. The time now is 00:17. |
vBulletin® Version 3.8.8