[New-bugs-announce] [issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

Andrew Aladjev report at bugs.python.org
Sun Jan 5 08:41:23 EST 2020


New submission from Andrew Aladjev <aladjev.andrew at gmail.com>:

Please see the following gentoo bug https://bugs.gentoo.org/704816

https://github.com/python/cpython/blob/master/Lib/lib2to3/pgen2/driver.py#L110

> head + tail + ".".join(map(str, sys.version_info)) + ".pickle"

I've tried "print(sys.version_info)" during compilation and received:
> sys.version_info(major=3, minor=6, micro=9, releaselevel='final', serial=0)

"sys.version_info" is not the target python version, this is the version of python that is running compilation. This variable needs to be replace with something like "sys.target_python_version".

This issue looks simple but I can't fix it by myself. Please assign this issue to core developer. We need to find all places where "sys.version_info" is used as target python version during compilation and replace it.

----------
components: Library (Lib)
messages: 359343
nosy: puchenyaka
priority: normal
severity: normal
status: open
title: Cross compiled python installed wrong version of lib2to3/Grammar pickle
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39221>
_______________________________________


More information about the New-bugs-announce mailing list