On Sat, Aug 20, 2016 at 12:55 PM, Random832 <random...@fastmail.com> wrote: > > What about -S and putting "import site" explicitly in the test code? Or > would that go back to importing everything on people who have packages > installed?
I think so, yes. > Really, there should be a "source-isolated" mode, which removes > /usr/lib/whatever from the path in the same way that -I removes the > user's stuff, but still runs cpython/Lib/site.py , and all tests (and > for that matter stuff like frozen module prep) should be run in this > mode. > > I'm not sure I see a downside to having such a mode be the *default* > mode for "python detects it is being run from a source tree". That sounds great, but I don't have the skills to implement that and ensure that it's reliable. ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com