Topic
1 reply Latest Post - ‏2012-01-05T16:18:16Z by carlos_seo
SystemAdmin
SystemAdmin
9 Posts
ACCEPTED ANSWER

Pinned topic python 2.6 in advance toolchain 4.0.2 with bogus sysconfig.get_python_lib

‏2011-08-15T13:51:04Z |
Hi,

while porting some additional Python modules for the python 2.6.6 version
that comes with the advance toolchain 4.0.2, I came across the following
strange behavior:

bash-3.2$ python
Python 2.6.6 (r266:84292, Jul 28 2011, 02:36:35)
[GCC 4.5.4 20110524 (Advance-Toolchain-4.0-2) [ibm/gcc-4_5-branch revision 1748 on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils import sysconfig; print sysconfig.get_python_lib()
/opt/at4.0/lib64/python2.6/python2.6/site-packages

Actually the path returned should read

/opt/at4.0/lib64/python2.6/site-packages

i.e. one python2.6 is printed too much.

This causes many configure-make-makeinstall procedures of ready
to use packages to fail which use the above script to find the
installation directory for pyhton modules.

This looks like a configuration problem during compilation of the python 2.6 package
in the toolchain itself.
Could one of the maintainers have a look at this ?

Mathias Puetz
mpuetz@de.ibm.com
Updated on 2012-01-05T16:18:16Z at 2012-01-05T16:18:16Z by carlos_seo
  • carlos_seo
    carlos_seo
    1 Post
    ACCEPTED ANSWER

    Re: python 2.6 in advance toolchain 4.0.2 with bogus sysconfig.get_python_lib

    ‏2012-01-05T16:18:16Z  in response to SystemAdmin
    This will be fixed in the next releases (4.0-5 and 5.0-2).

    Thanks,

    --
    Carlos Eduardo Seo
    Advance Toolchain Project Leader
    IBM Brazil Master Inventor
    IBM Corp.