Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2002 09:19:23 -0400 (EDT)
From:      Emil Sit <sit@amsterdam.lcs.mit.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43036: python-doc packages aren't found by pydoc
Message-ID:  <200209201319.g8KDJNn10505@frenulum.lcs.mit.edu>

next in thread | raw e-mail | index | archive | help

>Number:         43036
>Category:       ports
>Synopsis:       python-doc packages aren't found by pydoc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 20 06:20:28 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Emil Sit
>Release:        FreeBSD 4.5-RELEASE-p19 i386
>Organization:
MIT
>Environment:
System: FreeBSD frenulum.lcs.mit.edu 4.5-RELEASE-p19 FreeBSD 4.5-RELEASE-p19 #1: Fri Aug 23 12:13:08 EDT 2002 sit@frenulum.lcs.mit.edu:/usr/obj/usr/src/sys/PDOS i386


	
>Description:
	The pydoc command (and interactive python help() function) do
	not find the docs installed by the python-doc-html package.

>How-To-Repeat:
	# portinstall python
	# portinstall python-doc-html
	$ python
	>>> help ()
	help> and

>Fix:
	Patch /usr/local/lib/python2.2/pydoc.py with something like:

--- pydoc.py.dist	Thu Sep 19 16:50:22 2002
+++ pydoc.py	Fri Sep 20 09:02:53 2002
@@ -1492,10 +1492,10 @@
         for dir in [os.environ.get('PYTHONDOCS'),
                     homedir and os.path.join(homedir, 'doc'),
                     os.path.join(execdir, 'doc'),
-                    '/usr/doc/python-docs-' + split(sys.version)[0],
-                    '/usr/doc/python-' + split(sys.version)[0],
-                    '/usr/doc/python-docs-' + sys.version[:3],
-                    '/usr/doc/python-' + sys.version[:3]]:
+                    '/usr/local/share/doc/python-docs' + split(sys.version)[0],
+                    '/usr/local/share/doc/python' + split(sys.version)[0],
+                    '/usr/local/share/doc/python-docs' + sys.version[:3],
+                    '/usr/local/share/doc/python' + sys.version[:3]]:
             if dir and os.path.isdir(os.path.join(dir, 'lib')):
                 self.docdir = dir
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209201319.g8KDJNn10505>