Avoid psutil requirement on Cygwin by UTSAV-2024 · Pull Request #15247 · ipython/ipython · GitHub
Skip to content

Avoid psutil requirement on Cygwin - #15247

Merged
Carreau merged 1 commit into
ipython:mainfrom
UTSAV-2024:fix-cygwin-psutil-install-15245
Jun 12, 2026
Merged

Carreau merged 1 commit into
ipython:mainfrom
UTSAV-2024:fix-cygwin-psutil-install-15245

Conversation

@UTSAV-2024

@UTSAV-2024 UTSAV-2024 commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #15245.

This mirrors the approach taken in PR #15190 for emscripten.

psutil does not support the cygwin platform and causes pip install ipython to fail. The only current use of psutil in IPython is in IPython/core/kitty.py for terminal graphics detection.

That feature is already gated to Darwin and Linux terminals, so it is never exercised on Cygwin. Excluding psutil from dependencies on Cygwin restores installation support without affecting runtime behavior.

Testing

  • Verified that psutil is only imported from IPython/core/kitty.py.
  • Confirmed that Kitty support returns early on non-Darwin/non-Linux platforms.
  • Followed the same pattern used in PR avoid psutil requirement on emscripten #15190 for emscripten.

@nickwilliams-zaxiom

Copy link
Copy Markdown

@Carreau Carreau added this to the 9.14.2 milestone Jun 12, 2026
@Carreau

Carreau commented Jun 12, 2026

Copy link
Copy Markdown
Member

@Carreau
Carreau merged commit ec5ccc6 into ipython:main Jun 12, 2026
23 of 24 checks passed
@Carreau Carreau modified the milestones: 9.14.2, 9.15 Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ipython fails to install on Cygwin due to psutil not supporting Cygwin, despite documentation claiming ipython supports Cygwin

3 participants