New submission from Andy Salnikov:
Hi,
when trying to build extension modules with distutils I ran into
a problem that linking fails with an errors like:
gcc -pthread -shared -L build/temp.linux-x86_64-2.7/h5py/defs.o
-L/reg/g/psdm/sw/external/hdf5/1.8.4p1/x86_64-rhel6-gcc44-opt/lib -L.
-Wl
Andy Salnikov added the comment:
I never submitted any patch to Python, but unless somebody more
experienced wants to contribute I can try.
--
___
Python tracker
<http://bugs.python.org/issue16
Andy Salnikov added the comment:
Hi Éric,
I am attaching a patch that fixes the problem. The patch is tiny, basically
1-line. This replaces the direct use of sys.executable with the
symlink-resolved version of the same path. I made the change for linux/unix
platforms and also for cygwin
Andy Salnikov added the comment:
OK, I see the problem. Do you think it would help if it tested both
sys.executable and its symlynk-resolved path against sys.exec_prefix
like this:
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin&q