[Fedora-packaging] purpose of ruby(abi), python(abi), etc

Toshio Kuratomi a.badger at gmail.com
Fri Dec 21 15:27:25 UTC 2012


On Dec 21, 2012 2:53 AM, "Miroslav Suchý" <msuchy at redhat.com> wrote:
>
> On 12/20/2012 01:43 AM, Garrett Holmstrom wrote:
>>
>> There's also the fact that the ABI for the bytecode that gets generated
>> at build time is specific to each x.y series of python releases.
>
>
> Well it is even specific for each architecture and we do not mind to flag
such packages as noarch. I mean that .pyc generated on i686 is different
from x86_64 version.
> However I'm not sure how much those two are compatible.
>

This is incorrect.  Python bytecode is arch independent.  The .pyc files
from one compilation are different from a second compilation out its true.
But this is because a timestamp is embedded in the bytecode cache files
(.pyc) so that python can tell whether a .pyc or a .py should be used when
it finds both on disk.

-Toshio

> --
> Miroslav Suchy
> Red Hat Systems Management Engineering
>
> --
> packaging mailing list
> packaging at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20121221/cd8a01dd/attachment.html>


More information about the packaging mailing list