Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosperate opened this issue Feb 16, 2024 · 0 comments
Open

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

carlosperate opened this issue Feb 16, 2024 · 0 comments

Comments

@carlosperate
Copy link
Member

carlosperate commented Feb 16, 2024

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.

@carlosperate carlosperate changed the title Enhancement: Using uv to manage venv and pip install Enhancement: Using uv to manage venv and pip install Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant