[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PEP 384 (limited ABI)



Hi Stefano!

On Sat, Dec 31, 2016 at 07:42:39PM +0200, Stefano Rivera wrote:
> cffi modules will also now use the limited ABI, where possible, so I've
> played with them a bit.
>
> > A) Build with only one Python 3 version and install the .so files with
> >    foo.abi3.so filenames (so no rebuilds will be needed for Python updates);
>
> I think dh_python3 already has the necessary support for that.

I don’t see any mentions of this in dh-python code, apart from the tests…

Also, I think there is no (easy) way for dh_python3 to detect whether a built
.so file is using the limited ABI, so the renaming should be done manually.

> Just one thing to watch out for: python3-dbg builds will also use
> abi3.so, but aren't actually compatible.
>
> https://bugs.python.org/issue28401

Thanks for the link!

So, the debug interpreter tries to load the extensions from files prefixed
with abi3, but is not really compatible with abi3? That looks like upstream
bug…

If the debug interpreters do not support normal abi3, maybe we can have
another prefix for them, like abi3d?

Building for one normal interpreter and for all debug interpreters looks a
bit inconsistent to me (especially for PyQt where the build takes quite a
long time).

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: