uv icon indicating copy to clipboard operation
uv copied to clipboard

dist-info entry in site-packages for editable install

Open letrec opened this issue 1 year ago • 0 comments

uv pip install -e creates a dist-info entry in site-packages, which python -m pip does not seem to do.

uv venv --python 3.10 --no-python-downloads --link-mode hardlink source .venv/bin/activate uv pip install -e ~/src/my_package

% ls .venv/lib/python3.10/site-packages/ | grep my_package editable.my_package-0.5.0.16.pth __editable___my_package_0_5_0_16_finder.py my_package-0.5.0.16.dist-info

% uv --version uv 0.4.0

% uname -a 24~22.04.1-Ubuntu SMP Thu Jul 18 10:43:12 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I don't think it's a wrong behavior, but it's different from what pip does and it confuses Pylance. The packages is completely functional in Python.

letrec avatar Aug 29 '24 06:08 letrec