On Sun, Jan 10, 2016 at 01:26:47PM +0000, Stuart Henderson wrote:
> I don't think PKG_ARCH=* is a good idea - .pyc files aren't identical between 
> arches.
> 

My little research:
Python bytecode is portable across platforms, but not really across Python 
versions.

.pyc files contain a timestamp, this explains the difference.

Structure pyc (py2):
4 byte - magic
4 byte - timestamp
other - bytecode (marshal)

Structure pyc (py3):
4 byte - magic
4 byte - timestamp
4 byte - size
other - bytecode (marshal)

I check amd64 and i386, the files are identical.

Can anyone have more information?

> On 10 January 2016 12:12:34 GMT+00:00, Alexandr Shadchin 
> <alexandr.shadc...@gmail.com> wrote:
> >On Sun, Jan 10, 2016 at 03:47:57PM +0500, Alexandr Shadchin wrote:
> >> Hi,
> >> 
> >> ok to import devel/py-test-runner ?
> >> 
> >> DESCR:
> >> 
> >> Setup scripts can use pytest-runner to add setup.py test support
> >> for pytest runner.
> >> 
> >
> >Add PKG_ARCH=*
> 
> -- 
> Sent from a phone, please excuse the formatting.

-- 
Alexandr Shadchin

Reply via email to