[issue8759] 2.7: wrong user site directory on Linux

Sridhar Ratnakumar report at bugs.python.org
Wed May 19 23:58:18 CEST 2010


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

On further analysis:

$ /tmp/apy27/bin/python -c "from sysconfig import get_path; print get_path('purelib', 'posix_user')"
/home/sridharr/.local/lib/python/2.7/site-packages
$

>From sysconfig.py:

    'posix_user': {
        'stdlib': '{userbase}/lib/python/{py_version_short}',
        'platstdlib': '{userbase}/lib/python/{py_version_short}',
        'purelib': '{userbase}/lib/python/{py_version_short}/site-packages',
        'platlib': '{userbase}/lib/python/{py_version_short}/site-packages',

Ah, there is the bug!

----------

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


More information about the Python-bugs-list mailing list