pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38140: Patch to make pydoc work

>Number:         38140
>Category:       pkg
>Synopsis:       Patch to make pydoc work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 02 21:45:00 +0000 2008
>Originator:     Christian Hattemer
>Release:        4.0
NetBSD webster.lan 4.0_STABLE NetBSD 4.0_STABLE (WEBSTER) #0: Sat Mar  1 
19:14:34 CET 2008
pkgsrc/lang/python24's pydoc2.4 doesn't work because the paths where it looks 
for the docs are wrong.

While you are at it, please also make links from python and pydoc to python2.4 
and pydoc2.4 like other packages do. It's quite annoying to type pydoc, see 
that it doesn't work and then remember that you have to type pydoc2.4.
pydoc2.4 print
Apply this patch:
--- /usr/pkg/lib/python2.4/        2007-09-30 22:32:06.000000000 
+++ /usr/pkg/lib/python2.4/
@@ -1636,10 +1636,7 @@ class Helper:
         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/pkg/share/doc/html/python' + sys.version[:3],
             if dir and os.path.isdir(os.path.join(dir, 'lib')):
                 self.docdir = dir

Home | Main Index | Thread Index | Old Index