+13
−0
+18
−6
Loading
At Mach initialization time, it needs to know if it's not running from the Mach virtualenv so it can decide to insulate itself from the external sys.path. However, the current mechanism of detecting the Mach virtualenv struggles if the venv is old, and therefore missing its metadata file. In such a case, it's recognized as "not the Mach venv" rather than "an out-of-date Mach venv". As part of this, I'm realizing that simply using the metadata file as a "virtualenv has finished building" marker is insufficient, because it will cause similar confusion here. This is solved with a "finalization" key in in the metadata. Differential Revision: https://phabricator.services.mozilla.com/D130794