Summary: | python.m4 sets wrong pythondir for multilib | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Angelo Arrifano (RETIRED) <miknix> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | aballier, amd64, base-system, releng, ssuominen |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 185294, 187626 |
Description
Angelo Arrifano (RETIRED)
2007-08-05 16:48:42 UTC
One way for fixing this is, python -c 'from distutils.sysconfig import get_python_lib; import os; print os.path.normcase(os.path.realpath(get_python_lib()))' This returns actual directory, instead of symlink. Had to override python.m4 in bug 187626 because of this borqued handling. strange i got the right directory. python -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='/usr')" /usr/lib64/python2.5/site-packages python -c 'from distutils.sysconfig import get_python_lib; import os; print os.path.normcase(os.path.realpath(get_python_lib()))' /usr/lib64/python2.5/site-packages Doesn't work here, it returns the wrong libdir. python -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='/usr')" /usr/lib/python2.4/site-packages python -c 'from distutils.sysconfig import get_python_lib; import os; print os.path.normcase(os.path.realpath(get_python_lib()))' /usr/lib64/python2.4/site-packages Hmm, metalgod your running Python 2.5, perhaps there is a difference between 2.4? I get the same results as metalgod here with python-2.5, guess it's just 2.4 that returns the wrong path. Upgrading to python 2.5 fixed it here aswell. And another package fails because of Python 2.4, net-wireless/gnome-bluetooth-0.9.1 which has now an fugly sed to work this around. Can we get 2.5 stabilized please? I'd be happy with either a fixed 2.4 version or a stable 2.5 version. python ping (In reply to comment #8) > python ping > Can you supply me a list I need in order to get 2.5 stable for amd64? Actually, from what I understand, python 2.4 returns something sensible... The first parameter of sysconfig.get_python_lib() is whether the library is platform specific or not. So if you set it to 1, it will return lib64/. The autofoo should install the .py in /usr/lib (pkgpython) and the .so in /usr/$(get_libdir) (pkgpyexec) So, is this broken or not? More importantly, is this something I need to fix for 2008.0? the python.m4 in aclocal 1.10 is perfectly fine The problem with these packages is that they install modules in pythondir instead of pyexecdir |