Skip to content

gh-157899: Factorize support._requires_unix_version() code - #159523

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:requires_unix
Open

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:requires_unix

Conversation

@vstinner

@vstinner vstinner commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Reuse the same code for _requires_unix_version() and _requires_apple_os_version().

Check sys.platform instead of platform.system().

Reuse the same code for _requires_unix_version() and
_requires_apple_os_version().

Check sys.platform instead of platform.system().
@vstinner

Copy link
Copy Markdown
Member Author

cc @encukou

@vstinner

Copy link
Copy Markdown
Member Author

I checked sys.platform value on the 4 operating systems:

  • macOS: darwin
  • Linux: linux
  • FreeBSD: freebsd
  • iOS: ios

@vstinner vstinner removed the type-feature A feature request or enhancement label Oct 16, 2026
@encukou encukou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 16, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit ba16058 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159523%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 16, 2026
@encukou

encukou commented Oct 16, 2026

Copy link
Copy Markdown
Member

Looks good!

But also OS-specific, so I'd like to ask Buildbot's opinion.

@vstinner

Copy link
Copy Markdown
Member Author

So far, 4 buildbot failed, but for reasons unrelated to this change.

buildbot/AMD64 Alpine Linux NoGIL PR

test_lazy_import and test_profiling failed, I created 2 issues:

buildbot/AMD64 Alpine Linux PR

test_lazy_import failed, same issue.

buildbot/AMD64 FreeBSD15 PR
buildbot/AMD64 FreeBSD16 PR

test_lazy_import failed, same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants