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

Add --local flag #10812

Open
morags opened this issue Jan 21, 2025 · 0 comments
Open

Add --local flag #10812

morags opened this issue Jan 21, 2025 · 0 comments
Labels
wish Not on the immediate roadmap

Comments

@morags
Copy link

morags commented Jan 21, 2025

Feature request

Add a flag that forces uv to work completely locally, with no changes to the global environment.

Background

I have two use cases for which a completely local installation (no global python, no global cache, perhaps not even a global uv) is needed:

  1. Distributing packages to systems that don't have, or can't have Python installed (see eg. here).
  2. Installing a package that is sensitive to non-ASCII paths (eg. C:\Users\Иван\AppData\Roaming\uv\)

At the moment there are several flags and environment variables that allows you to control parts of this behavior, like --cache-dir and UV_PYTHON_INSTALL_DIR, but it would be useful to have a single flag that concentrates all of them and forces uv to work in a completely isolated fashion.

Suggested behavior

uv <command> --local <folder> runs a command in a given folder without touching the global environment, including caches, Python installations and configuration files.

@charliermarsh charliermarsh added the wish Not on the immediate roadmap label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wish Not on the immediate roadmap
Projects
None yet
Development

No branches or pull requests

2 participants