This change removes self from the seed used to generate Venv hashes. This is because recent changes to the requirements installation logic mutated self between installation and pythonpath generation in such a way as to change the resulting hash. This meant that the virtualenv pointed to in the pythonpath was not the same one that had been generated for the current command run.
Basing the hash solely on attributes that don't change during execution keeps it stable per run.
This change removes
self
from the seed used to generate Venv hashes. This is because recent changes to the requirements installation logic mutatedself
between installation and pythonpath generation in such a way as to change the resulting hash. This meant that the virtualenv pointed to in the pythonpath was not the same one that had been generated for the current command run.Basing the hash solely on attributes that don't change during execution keeps it stable per run.
This has been tested on dd-trace-py https://github.com/DataDog/dd-trace-py/pull/5227/commits/492fc0d8b21e537541befce36ac77478c6ed4f29