pip icon indicating copy to clipboard operation
pip copied to clipboard

ctypes is a hard dependency on windows

Open youknowone opened this issue 1 month ago • 0 comments

Description

Hello,

I am trying to enable pip on RustPython.

We were able to run pip without ctypes for macos and linux, but not yet on windows. On windows, pip automatically uses rich's legacy windows terminal support.

Because most of the features of pip doesn't require ctypes as a hard dependency, I'd like to patch either pip or rich not to have ctypes as a hard dependency if you don't mind.

Patch to rich: https://github.com/Textualize/rich/pull/3911 Patch to pip: #13686

If patching rich is possible, updating vendored library will be enough to fix this problem. (And #13686 need to be closed)

Expected behavior

No response

pip version

25.2

Python version

rustpython3.13

OS

windows

How to Reproduce

  1. Checkout RustPython main repository.
  2. Patch RustPython's ensurepip to use CPython's ensurepip
  3. Build RustPython
  4. Run rustpython --install-pip

Output

No response

Code of Conduct

youknowone avatar Dec 08 '25 12:12 youknowone