Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PYTHON_FOR_REGEN only works with Python 3.10 or newer #104487

Closed
Labels
buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error
@erlend-aasland

Description

@erlend-aasland

On currentmain,PYTHON_FOR_REGEN only works with Python 3.10 or newer.

Previously, we've tried to maintain backwards compatibility with older Python versions in our build system. Last time we adjustedPYTHON_FOR_REGEN (gh-98988), we deliberately did not bump the minimal version requirements; ourconfigure checks for Python 3.11 through Python 3.6.

While working ongh-104050, a discussion about version requirements came up, and we found out that onmain,make clinic only works whenPYTHON_FOR_REGEN is Python 3.10 or newer. Also, the newly introduced "generate cases script" uses pattern matching and uses newly introduced typing features. Per now,PYTHON_FOR_REGEN must be 3.10 or newer.

There are two solution to this:

  1. bump thePYTHON_FOR_REGEN version requirements to 3.10 inconfigure
  2. amend the problematic build scripts, so older Python versions are still supported

Personally, I think I'm leaning towards the former. Apparently no core dev, triager or other contributor has noticed this issue until now. No buildbot has failed (we don't test the minimum required version; perhaps we should). OTOH, I understand that it makes stuff like bootstrapping slightly more cumbersome.

Anyway, we should probably at least bump the version requirement from Python 3.6 to 3.8.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp