Python 3 ABI change (PEP 3149)

David Malcolm dmalcolm at redhat.com
Thu Dec 30 02:16:22 UTC 2010


I've built python-3.2b2 into rawhide as python3-3.2-0.6.b2.fc15
http://koji.fedoraproject.org/koji/buildinfo?buildID=212004

This version is the first to hit rawhide with PEP 3149, which is another
ABI change.

It's a somewhat ironic change, in that the in-DSO ABI hasn't really
changed, so much as the SONAME of the python 3 library has changed, to
add a tag that expresses which version of the ABI it uses.  This also
affects some import paths.

Specifically, the SONAME has changed from
  libpython3.2.so.1.0
to
  libpython3.2mu.so.1.0

The "mu" expresses buildtime configuration that affects the ABI.
  "m" => --with-pymalloc
  "u" => --with-wide-unicode
  
The debug version of that library is "libpython3.2dmu.so.1.0"

Similarly, all compiled python modules change extension, from being
merely:
   foo.so
to:
   foo.cpython-32mu.so

See http://www.python.org/dev/peps/pep-3149/ for details.

Any python3 rpms that have compiled modules will need rebuilding.

I've rebuilt almost all of the compiled modules I know about [1].

An exception is python3-cairo, which I've filed as:
  https://bugzilla.redhat.com/show_bug.cgi?id=666297


Hope this is helpful, and that I didn't break anything
Dave

[1] Successful rebuilds:
  python-lxml-2.2.8-3.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212011

  python3-postgresql-1.0.0-4.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212013

  python-coverage-3.4-2.fc15 for dist-rawhide
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212014

  python-markupsafe-0.11-2.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212015

  mpi4py-1.2.2-4.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212019

  python-smbpasswd-1.0.1-16.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212020

  python-zmq-2.0.8-2.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212021

  python-smbc-1.0.10-3.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212024

  numpy-1.5.1-0.2.fc15
    http://koji.fedoraproject.org/koji/buildinfo?buildID=212025



More information about the devel mailing list