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

feat(venv): add relocatable flag #5515

Merged
merged 6 commits into from
Jul 29, 2024
Merged

Commits on Jul 28, 2024

  1. feat(venv): add relocatable flag

    Adds a `--relocatable` CLI arg to `uv venv`. This flag does two things:
    
    * ensures that the associated activation scripts do not rely on a hardcoded
      absolute path to the virtual environment (to the extent possible; `.csh` and
      `.nu` left as-is)
    * persists a `relocatable` flag in `pyvenv.cfg`.
    
    The flag in `pyvenv.cfg` in turn instructs the wheel `Installer` to create
    script entrypoints in a relocatable way (use `exec` trick + `dirname $0` on
    POSIX; use relative path to `python[w].exe` on Windows).
    
    Fixes: astral-sh#3863
    paveldikov committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    fbbe0d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9eb8f8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9b9bd3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5a38a6c View commit details
    Browse the repository at this point in the history
  5. Run cargo fmt

    charliermarsh committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    5508f23 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    19cef6c View commit details
    Browse the repository at this point in the history