8000 Need use python 3.9 or higher to compile CPython on Windows · Issue #94280 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Need use python 3.9 or higher to compile CPython on Windows #94280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
znsoooo opened this issue Jun 25, 2022 · 0 comments
Closed

Need use python 3.9 or higher to compile CPython on Windows #94280

znsoooo opened this issue Jun 25, 2022 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@znsoooo
Copy link
Contributor
znsoooo commented Jun 25, 2022

Environment:

  • CPython versions tested on: Python 3.12 (hash: c57a1c7 and many before, including alpha beta released version)
  • Operating system and architecture: Win 10 / 64 bit

Use command:

PCbuild\build.bat -e -d

Show log:

...
Using py -3.8 (found 3.8 with py.exe)
...
  _freeze_module.vcxproj -> H:\github\repos\cpython\PCbuild\win32\_freeze_module_d.exe
  Traceback (most recent call last):
    File "H:\github\repos\cpython\Tools\scripts\deepfreeze.py", line 445, in <module>
      def generate(args: list[str], output: TextIO) -> None:
  TypeError: 'type' object is not subscriptable
...

list[str] is an unsupported syntax before PY39, so build with PY38 will throw an error here.
If I make compatibility editing here, it will also generate errors in other places.
I think limiting the build to a higher version Python is a more appropriate option.

@znsoooo znsoooo added the type-bug An unexpected behavior, bug, or error label Jun 25, 2022
@zooba zooba closed this as completed Jun 27, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Nov 7, 2022
…ndows (pythonGH-94281)

(cherry picked from commit acc6468)

Co-authored-by: Shixian Li <34830785+znsoooo@users.noreply.github.com>
miss-islington added a commit that referenced this issue Nov 7, 2022
…H-94281)

(cherry picked from commit acc6468)

Co-authored-by: Shixian Li <34830785+znsoooo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants
0