$ cat /etc/env.d/50python-docs PYTHONDOCS=/usr/share/doc/python-docs-2.4.4/html/lib $ python Python 2.4.4 (#1, Jun 28 2007, 03:03:50) [GCC 4.1.2 (Gentoo 4.1.2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help('if') Sorry, topic and keyword documentation is not available because the Python HTML documentation files could not be found. If you have installed them, please set the environment variable PYTHONDOCS to indicate their location. --------------- maybe need set PYTHONDOCS to /usr/share/doc/python-docs-2.4.4/html/ ?? --------------- [I] dev-lang/python Installed versions: 2.3.5-r3(2.3)(18:06:55 13.05.2007)(-berkdb -bootstrap -build -doc gdbm -ipv6 ncurses -nocxx readline ssl -tk -ucs2) 2.4.4-r4(2.4)(03:06:01 28.06.2007)(-berkdb -bootstrap -build doc examples gdbm -ipv6 ncurses -nocxx -nothreads readline ssl -tk -ucs2)
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 i686) ================================================================= System uname: 2.6.20-gentoo-r8 i686 Celeron (Coppermine) Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 23 Jun 2007 09:00:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.32 dev-lang/python: 2.3.5-r3, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-a" FEATURES="assume-digest ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LC_ALL="" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 bash-completion bitmap-fonts cairo cdr cups dri dvd dvdr dvdread gdbm gif gpm gtk iconv isdnlog jpeg mad midi mikmod mp3 mpeg mudflap musicbrainz mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd qt3 qt3support qt4 readline reflection samba sdl session slang ssl svg tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xorg xv zlib" ALSA_CARDS="intel8x0" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
With the proposed PYTHONDOCS it works. Any reason why not changing this?
Created attachment 134892 [details, diff] Patch to dev-python/python-docs-2.5.1.ebuild Maybe gentoo devs need an explicit patch to fix it? ;-) ...So I attach one. ;-)
confirming the issue. Being a python illiterate I have no clue what's right or wrong (bug 151695 or this one). Maybe some stuff just isn't installed into the right location? I just think either one approach should be chosen. As it stands currently: python-docs-2.4.4.ebuild html/lib python-docs-2.5.1.ebuild html/lib python-docs-2.5.ebuild html/ which is not consistent.
(but only the setting from 2.5 works for me: I can run `pydoc shlex` and `pydoc if ` only when my PYTHONDOCS is set to /usr/share/doc/python-docs-2.4.3/html.)
Still broken in 2.5.2 because of the extra "/lib" attached to the PYTHONDOCS env var.
It works for me in 2.6.2