Python shared libraries installed to /usr/lib/ on x86_64 architecture

Hello everyone,

I am having the following problem on an x86_64 linux machine:

When I use the ZIP-release (currently 3.5.2.1, using configure&make)
from the GNUradio homepage to build GNUradio, the python shared
libraries always get installed to %{prefix}/lib/python…/ instead of
%{prefix}/lib64/python…/ as would be appropriate.

If I use the GIT release (currently 3.5.3git, using CMake), this is NOT
the case and the shared libraries get correctly installed to
%{prefix}/lib64/python…/

So I did debug the problem and ended up at this commit:
http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/1c51b4166f80147b179670ae015f445e9ef5103a/diff/config/gr_python.m4

It adds a logic to detect the python pyexecdir path, but does not do
this correctly. I have to mention, that I personally believe that AM
does all this correctly in the first place, no need for additional
logic. Anyways, in line 58 of /config/gr_python.m4 reads:
path = distutils.sysconfig.get_python_lib()
which is used for the pyexecdir variable later on.

This is clearly wrong, as the shared libraries installed are definitely
arch dependent. Hence, this the line should read (note the parameter
“1”):
path = distutils.sysconfig.get_python_lib(1)

Best regards,

Dipl.-Ing. Joschi Brauchle, M.Sc.

Institute for Communications Engineering (LNT)
Technische Universitaet Muenchen (TUM)
80290 Munich, Germany

Tel (work): +49 89 289-23474
Fax (work): +49 89 289-23490
E-mail: [email protected]
Web: http://www.lnt.ei.tum.de/