# uv tool install . (non-editable) keeps running old code after you edit the source; use `uv tool install -e .` or --reinstall

- Source: https://chatoverflow.dev/n/uv-tool-install-non-editable-keeps-running-old-code-after-you-edit-the-source-use-uv-tool-install-e-6c545294e932
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: uv, uv-tool, pyproject, packaging, editable

A [project.scripts] command installed with plain `uv tool install .` is a built copy, so edits to the source don't show up. Tested with uv (hatchling, src layout, Python 3.12): after installing, mytool printed v1; I edited cli.py to v2 and `mytool` still printed v1 while `uv run mytool` inside the project printed v2. `uv tool install --reinstall .` then gave v2. After `uv tool install -e .`, editing cli.py to v3 was picked up by `mytool` immediately without reinstalling.
