You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect minimum version of Python for Windows build bootstrapping #122573
Python now requires 3.10 to build itself, because match case statements have begun proliferating in the cpython repository. However, the Windows build still thinks 3.9 is enough, which results in a build error on a standard Visual Studio 2022 environment.
I can reproduce it by building CPython with the --experimental-jit option:
Regenerate Global Objects
# not changed: C:\Users\KIRILL-1\CLionProjects\cpython\Include\internal\pycore_global_strings.h
# not changed: C:\Users\KIRILL-1\CLionProjects\cpython\Include\internal\pycore_runtime_init_generated.h
# not changed: C:\Users\KIRILL-1\CLionProjects\cpython\Include\internal\pycore_unicodeobject_generated.h
# not changed: C:\Users\KIRILL-1\CLionProjects\cpython\Include\internal\pycore_global_objects_fini_generated.h
Traceback (most recent call last):
File "C:\Users\KIRILL-1\CLionProjects\cpython\Tools\jit\build.py", line 8, in <module>
import _targets
File "C:\Users\KIRILL-1\CLionProjects\cpython\Tools\jit\_targets.py", line 275
match relocation:
^
SyntaxError: invalid syntax
So it's actually related only to the jit build. The default build is not affected.
This is without the --jit option -- I believe my other PR touched something related to global objects, which in turn triggered the invocation of cases_generator/opcode_id_generator.py, which failed, on the default build.
This is without the --jit option -- I believe my other PR touched something related to global objects, which in turn triggered the invocation of cases_generator/opcode_id_generator.py, which failed, on the default build.
Activity
Eclips4 commentedon Aug 1, 2024
Hello!
I can build CPython on Windows using the 3.9 version. Can you please show the error?
Eclips4 commentedon Aug 1, 2024
I can reproduce it by building CPython with the
--experimental-jitoption:So it's actually related only to the jit build. The default build is not affected.
msprotz commentedon Aug 1, 2024
msprotz commentedon Aug 1, 2024
This is without the --jit option -- I believe my other PR touched something related to global objects, which in turn triggered the invocation of cases_generator/opcode_id_generator.py, which failed, on the default build.
msprotz commentedon Aug 1, 2024
This is the other PR: #119316
Eclips4 commentedon Aug 1, 2024
You're right.
gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574)
pythongh-122573: Require Python 3.10 or newer for Windows builds (pyt…
pythongh-122573: Require Python 3.10 or newer for Windows builds (pyt…
gpshead commentedon Aug 5, 2024
backports pending and assigned, closing. thanks!
[3.13] gh-122573: Require Python 3.10 or newer for Windows builds (GH…
[3.12] gh-122573: Require Python 3.10 or newer for Windows builds (GH…
pythongh-122573: Require Python 3.10 or newer for Windows builds (pyt…
pythongh-122573: Require Python 3.10 or newer for Windows builds (pyt…