documentation files - where to install ?

Helmut Jarausch jarausch at
Tue Oct 12 16:29:17 CEST 2004

Peter Otten wrote:
>>>Here's where Python 2.3 looks for the documentation:
>>>< excerpt>
>>>        homedir = os.environ.get('PYTHONHOME')
>>>        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],
>>>                    os.path.join(sys.prefix,
>>>            if dir and os.path.isdir(os.path.join(dir, 'lib')):
>>>                self.docdir = dir
>>></ excerpt>
>>>I've got the impression there may be a 'break' missing.
>>Strangely, it looks the same here (Python 2.4 installed in 
>>/usr/local/lib/python2.4) I would have expected something like
>>/usr/local/lib/python2.4/doc So, I'd like to suggest to add a 'configure'
>>option for this.
> No patience to read up right
> now, but if there is a standard location for documentation concerning
> programs installed from source (/usr/local/share/doc/pythonXXX with the
> proper version suffix maybe?) it could just be added to the hardcoded paths
> in 
> What would you expect the configure option to do?
Given, say, the configure option  --docdir=PATH, the install script 
could modify to include that PATH just after 


Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

More information about the Python-list mailing list