pip icon indicating copy to clipboard operation
pip copied to clipboard

PipConsole safely avoid ctypes features from rich

Open youknowone opened this issue 1 month ago • 2 comments

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.

youknowone avatar Dec 08 '25 07:12 youknowone

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?

uranusjr avatar Dec 08 '25 07:12 uranusjr

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

youknowone avatar Dec 08 '25 12:12 youknowone