[Python-Dev] [Distutils, Python3] Incorrect shared library extension on linux
Antoine Pitrou
solipsis at pitrou.net
Sun Dec 23 12:22:54 CET 2012
Hello,
On Sat, 22 Dec 2012 20:36:04 +0100
Sandro Mani <manisandro at gmail.com> wrote:
> Hello,
>
> First: I'm using Python3 as available in Fedora rawhide
> (python3-3.3.0-2.fc19.x86_64).
>
> Attempting to build a project using python3/distutils, I noticed that
> find_library_file would not find any library at all. Some investigation
> showed that this was due to the fact that libraries were searched with
> the ".cpython-33m.so" extension. Even more investigation showed that the
> library extension was read being overridden by the one defined in the
> /usr/lib64/python3.3/config-3.3m/Makefile shipped by python3-libs. See
> below for the detailed analysis. The python-versioned extension
> obviously makes no sense for regular shared objects which are not python
> binary modules, so this is clearly wrong. As a workaround I commented
> sysconfig.py at customize_compiler::235 (compiler.shared_lib_extension =
> so_ext, see below), and things seem to work.
>
> Is this a distribution bug or an upstream bug?
Probably an upstream bug, I suggest you file it at
http://bugs.python.org.
Regards
Antoine.
More information about the Python-Dev
mailing list