-
-
Notifications
You must be signed in to change notification settings - Fork 632
Open
Description
When running pip-sync against a requirements.txt which includes a different version of pip-tools itself, it tries to remove it, which causes an OSError.
Environment Versions
- OS version:
Windows 10 - Python version:
3.12.5 - pip version:
24.2 (venv)and25.2 (machine) - pip-tools version:
7.5.0
Steps to replicate
- Delete
.venvand recreate it - Install
pip-toolsin the new venv manually usingpip install pip-tools(this will install version 7.5.0) - Run
pip-syncagainst a requirements.txt which pinspip-toolsto 7.4.1
Expected result
pip-sync does not modify packaging tools like itself and simply skips pip-tools unless it's not installed
Actual result
pip-sync tries to uninstall itself and hence tries removing the executable it's running from causing an OSError
Metadata
Metadata
Assignees
Labels
No labels