IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-01-05T16:18:16Z by carlos_seo
9 Posts

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

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

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()

Actually the path returned should read


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
Updated on 2012-01-05T16:18:16Z at 2012-01-05T16:18:16Z by carlos_seo
  • carlos_seo
    1 Post

    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).


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