[issue3386] distutils.sysconfig.get_python_lib prefix argument broken

Philip Jenvey report at bugs.python.org
Wed Jul 16 23:10:54 CEST 2008


New submission from Philip Jenvey <pjenvey at users.sourceforge.net>:

get_python_lib supports an optional prefix argument:

    If 'prefix' is supplied, use it instead of sys.prefix or
    sys.exec_prefix -- i.e., ignore 'plat_specific'.

However the NT and OS2 platforms don't use the prefix argument when 
specified.

This problem was brought up a while ago here: http://mail.python.org/pipermail/distutils-sig/2002-November/003099.html

Andrew (the OS2 maintainer) claimed in the thread that fixing this would 
break OS2, but I don't see how. All callers of get_python_lib in the 
stdlib don't specify a prefix anyway. Anyone calling it with a prefix 
and expecting it not to be used is broken.

----------
components: Distutils
files: get_python_lib-r65033.diff
keywords: patch
messages: 69836
nosy: pjenvey
severity: normal
status: open
title: distutils.sysconfig.get_python_lib prefix argument broken
type: behavior
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10917/get_python_lib-r65033.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3386>
_______________________________________


More information about the Python-bugs-list mailing list