How to disable downloading previously downloaded setuptools in editable install?

I use editable install (-C editable_mode=strict) and it is sometimes neccessary to reinstall, e.g., after checkout to a previous commit. I found that pip install -e . -C editable_mode=strict always fetches setuptools from the internet, even though it has been downloaded in previous editable installs. This is a blocker when I develop on an airplane, which is one of my major available times. Is there a way to stop that? (I’m using pip 24.3.1 but I’m okay with updating)

1 Like