pip
pip copied to clipboard
ctypes is a hard dependency on windows
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
- Checkout RustPython main repository.
- Patch RustPython's ensurepip to use CPython's ensurepip
- Build RustPython
- Run
rustpython --install-pip
Output
No response
Code of Conduct
- [x] I agree to follow the PSF Code of Conduct.