Skip to content

PipConsole safely avoid ctypes features from rich#13686

Draft
youknowone wants to merge 1 commit intopypa:mainfrom
youknowone:no-ctypes
Draft

PipConsole safely avoid ctypes features from rich#13686
youknowone wants to merge 1 commit intopypa:mainfrom
youknowone:no-ctypes

Conversation

@youknowone
Copy link
Copy Markdown

Note: I will add an issue and news entry soon.

Modify PipConsole so that it doesn’t use the rich features that require ctypes when running in environments where ctypes is unavailable.
This helps ensure that pip works properly on Python implementations that do not provide ctypes.

Please tell me if patching rich will be a better idea.

@uranusjr
Copy link
Copy Markdown
Member

uranusjr commented Dec 8, 2025

This looks like it’s working around a problem in Rich, and ideally should be fixed in Rich. Is there an upstream issue on this?

@youknowone
Copy link
Copy Markdown
Author

Thank you! I opened issue #13687, and linked patch for rich there.

@ichard26
Copy link
Copy Markdown
Member

@youknowone how much of a problem is this for y'all? It seems like it may take a while for the Rich project to get around to reviewing and releasing your fix.

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.

3 participants