Active Topics

 



Notices


Reply
Thread Tools
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#1
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.
 

The Following User Says Thank You to tfj For This Useful Post:
Posts: 432 | Thanked: 917 times | Joined on Jun 2011
#2
Originally Posted by tfj View Post
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.
Hope it helps
Code:
$ apt-cache search python doc
python-libxml2 - Python bindings for the GNOME XML library
python-libxml2-dbg - Python bindings for the GNOME XML library (debug extension)
python-pycurl - Python bindings to libcurl
python2.5-minimal - A minimal subset of the Python language (version 2.5)
python-pygame - SDL bindings for games development in Python
python-lxml - pythonic binding for the libxml2 and libxslt libraries
python-minimal - A minimal subset of the Python language (default version)
python-gdata - Google Data Python client library
python-gobject-dev - Development headers for the GObject Python bindings
raemote - Apple Remote for Mac Mini, MacBook and MacBook Pro
python3.2-doc - Documentation for the high-level object-oriented language Python (v3.2)
python3.2-minimal - Minimal subset of the Python language (version 3.2)
python-pycurl-dbg - Python bindings to libcurl (debug extension)
python2.7-minimal - Minimal subset of the Python language (version 2.7)
python-sphinx - documentation generator for Python projects (implemented in Python 2)
docgenerator - generator plugin for python bindings documentation
renpy-launcher - Launcher of the Ren'Py authoring tools
python2.5-libxml2 - Python bindings for the GNOME XML library
python-xapian - Xapian search engine interface for Python
epydoc-doc - tool for documenting Python modules (documentation)
python-epydoc - tool for documenting Python modules
shiboken-doc - CPython bindings generator for C++ libraries documentation
python2.5-qt4-experimental-doc - Python Qt bindings demos, examples and documentation
python-sympy-doc - Computer algebra system (CAS) in Python.
python-pyglet-doc - Cross-platform windowing and multimedia library.
python-xdg-doc - Documentation for python-xdg
python-gobject-pygi-dev - Development headers for the GObject Python bindings
python2.5-qt4-doc - Python Qt bindings demos, examples and documentation (PR1.2)
python-numpy-doc - NumPy documentation
gtktouch - GTKTouch is a library to extend gtk functionality (very jsefull using by fingers).
python2.5-gnome2-extras-doc - Python bindings for the GNOME desktop environment - documentation
python-gnome2-extras-doc - Python bindings for the GNOME desktop environment - documentation
python-matplotlib-doc - Python based plotting system (documentation package)
ipython-doc - IPython - An interactive computing environment for Python
 
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#3
 
Posts: 35 | Thanked: 13 times | Joined on Apr 2013 @ N.A.
#4
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.

Last edited by tfj; 2014-01-27 at 16:29.
 

The Following User Says Thank You to tfj For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:31.