Skip to content

ctypes is a hard dependency on windows #13687

@youknowone

Description

@youknowone

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: Textualize/rich#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs triageIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions