<div dir="ltr">Yes, not too long ago I installed "every" Python package on Ubuntu, and Python basically would not start. Perhaps some plugin system was trying to import everything and caused a segfault in GTK. The "short sys.path" model of everything installed is importable has its limits.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 7, 2016 at 9:24 AM Barry Warsaw <<a href="mailto:barry@python.org">barry@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Jul 07, 2016, at 08:12 AM, Eric V. Smith wrote:<br>
<br>
>One thing to keep in mind if we do this is how it interacts with the -S<br>
>command line option to not include site-packages in sys.path. I currently use<br>
>-S to basically mean "give my python as it was distributed, and don't include<br>
>anything that was subsequently added by adding other RPM's (or package<br>
>manager of your choice)". I realize that's a rough description, and possibly<br>
>an abuse of -S. If using -S were to start excluding parts of the stdlib, that<br>
>would be a problem for me.<br>
<br>
It's an important consideration, and leads to another discussion that's<br>
recurred over the years.  Operating systems often want an "isolated" Python,<br>
similar to what's given by -I, which cannot be altered by subsequent<br>
installs.  It's one of the things that lead to the Debian ecosystem using<br>
dist-packages for PyPI installed packages.  Without isolation, it's just too<br>
easy for some random PyPI thing to break your system, and yes, that has really<br>
happened in the past.<br>
<br>
So if we go down the path of moving more of the stdlib to site-packages, we<br>
also need to get serious about a system-specific isolated Python.<br>
<br>
Cheers,<br>
-Barry<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com</a><br>
</blockquote></div>