-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Milestone
Description
Summary
when running uv venv --relocatable I expect to see no absolute paths to the location of the venv inside itself, however I see that the csh script still contains VIRTUAL_ENV pointing to the path.
I don't use csh, just thought it was curious and that maybe it was a bug.
alastair@apmini:~/venv-test$ uv venv
Using CPython 3.12.0
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
alastair@apmini:~/venv-test$ ack alastair .venv/bin
.venv/bin/activate.bat
29:@for %%i in ("/Users/alastair/venv-test/.venv") do @set "VIRTUAL_ENV=%%~fi"
.venv/bin/activate.fish
82:set -gx VIRTUAL_ENV '/Users/alastair/venv-test/.venv'
.venv/bin/activate
81:VIRTUAL_ENV='/Users/alastair/venv-test/.venv'
.venv/bin/activate.nu
71: let virtual_env = '/Users/alastair/venv-test/.venv'
.venv/bin/activate.csh
34:setenv VIRTUAL_ENV '/Users/alastair/venv-test/.venv'
alastair@apmini:~/venv-test$ rm -rf .venv/
alastair@apmini:~/venv-test$ uv venv --relocatable
Using CPython 3.12.0
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
alastair@apmini:~/venv-test$ ack alastair .venv/bin
.venv/bin/activate.csh
34:setenv VIRTUAL_ENV '/Users/alastair/venv-test/.venv'
Platform
Darwin 24.6.0 arm64
Version
uv 0.9.21 (Homebrew 2025-12-30)
Python version
Python 3.12.0
Reactions are currently unavailable