Skip to content

[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189)#152197

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:pythoninfo_bsd14
Jun 25, 2026
Merged

[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189)#152197
vstinner merged 1 commit into
python:3.14from
vstinner:pythoninfo_bsd14

Conversation

@vstinner

@vstinner vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member
  • Check sysctlbyname() function and sys/sysctl.h header in configure.
  • Add _testcapi.uptime_bsd() function.

(cherry picked from commit b6d89ed)

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.

(cherry picked from commit b6d89ed)
@vstinner vstinner enabled auto-merge (squash) June 25, 2026 13:26
@vstinner vstinner merged commit d25cf02 into python:3.14 Jun 25, 2026
49 of 52 checks passed
@vstinner vstinner deleted the pythoninfo_bsd14 branch June 25, 2026 13:40
@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Jun 25, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d25cf02a71ee1a77cd672a49b3b660e650d5e7a8 3.13

@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152207 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 25, 2026
vstinner added a commit that referenced this pull request Jun 25, 2026
…52197) (#152207)

[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197)

gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189)

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.

(cherry picked from commit b6d89ed)
(cherry picked from commit d25cf02)
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.

1 participant