Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Description
Whenwe invoke pip, we use-I to avoid interference from other variables. However, this also means that we ignore legitimate user preferences that ought to be retained. We probably wantPYTHONDONTWRITEBYTECODE,PYTHONUTF8,PYTHONIOENCODING,PYTHONMALLOC,PYTHONCOERCECLOCALE,PYTHONPYCACHEPREFIX at least, and maybe more (I just went through the help output of 3.10).
Interestingly, we don't use isolated mode later on when we upgrade the packages, so maybe we don't need it at all? Or perhaps we should be in some middle ground where we overridePYTHONPATH andPYTHONHOME to point at the venv/be empty but leave everything else in place?
Ping@vsajip
(Discovered in a system where attempting to write .pyc files would break.)