Skip to content

uv pip fails to install necessary packages #916

@jepler

Description

@jepler

Board Name

Raspberry Pi 5

Steps

  1. Install uv
  2. uv venv /tmp/blinka-uv
  3. . /tmp/blinka-uv/bin/activate
  4. uv pip install adafruit-blinka
  5. python -c 'import board

Description

Following these steps, the result is ModuleNotFoundError: No module named 'RPi'. Comparing uv pip freeze in this venv to pip freeze in a working venv, one can see the following two files were not installed: rpi-ws281x==5.0.0 RPi.GPIO==0.7.1

Additional information

This is likely to be related to how these declarations are conditional in the setup.py file. I couldn't find where this was a documented limitation of uv, but it seems possible/likely.

. o O ( I'm actually not sure how good old pip knows how to install RPi.GPIO when it installs a wheel of adafruit-blinka... )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions