Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Enhancement: Using uv to manage venv and pip install #2504

@carlosperate

Description

@carlosperate

Astral has anounced "uv" as a drop in replacement tool for, among other things, "pip install" and virtual environment creation.
When Mu needs to recreate a user venv this can take a significant amount of time, specially in slow computers, so a tool that claims to significantly help in this regard sounds quite interesting.

I've done a really quick hack to try it out: 105c62f

And on my machine (i7 Macbook) the time it took to launch Mu when there is no user venv went from 44 to 15 secons, so that's almost 3 times faster 🚀 with uv.

And that's without using uv to create the venv (still using virtualenv, so theoretically uv could save time there as well) and this hack also adds the extra steps to install uv inside the venv (we could ship uv installed together with Mu and use that directly).

As this is a rust application, we also want to make sure they provide wheels for all Mu supported platforms. Pi being armv7 might be the only thing less common, and looks like wheels are provided for this platform as well: https://pypi.org/project/uv/#files

So this looks promising, would be grea if we could incorporate it with Mu.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions