Hi, if you compile modules under /usr/src the distutils package get fooled because it checks if your path starts with the exec_prefix (/usr) and then tries to use /usr/lib instead of "." as a library path. The following patch fixes this bug.
Alex
diff -urNad python2.5-2.5~c1~/Lib/distutils/command/build_ext.py python2.5-2.5~c1/Lib/distutils/command/build_ext.py --- python2.5-2.5~c1~/Lib/distutils/command/build_ext.py 2006-09-16 16:58:32.000000000 +0200 +++ python2.5-2.5~c1/Lib/distutils/command/build_ext.py 2006-09-16 16:58:44.245675500 +0200 @@ -188,7 +188,7 @@ if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos' or \ (sys.platform.startswith('linux') and sysconfig.get_config_var('Py_ENABLE_SHARED')): - if string.find(sys.executable, sys.exec_prefix) != -1: + if sys.executable.startswith(os.path.join(sys.exec_prefix, 'bin')): # building third party extensions self.library_dirs.append(os.path.join(sys.prefix, "lib", "python" + get_python_version(),
signature.asc
Description: Digital signature