Skip to content

Avoid psutil requirement on Cygwin#15247

Open
UTSAV-2024 wants to merge 1 commit into
ipython:mainfrom
UTSAV-2024:fix-cygwin-psutil-install-15245
Open

Avoid psutil requirement on Cygwin#15247
UTSAV-2024 wants to merge 1 commit into
ipython:mainfrom
UTSAV-2024:fix-cygwin-psutil-install-15245

Conversation

@UTSAV-2024

Copy link
Copy Markdown

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.
image

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

1 participant