> On Mar 18, 2015, at 12:48 PM, Barry Warsaw <ba...@python.org> wrote:
> 
> On Mar 18, 2015, at 05:31 PM, Victor Stinner wrote:
> 
>> Does it work to pass command line options to Python in the shebang?
> 
> Yes, but only one "word", thus -Es or -I.
> 
> We've often mused about whether it makes sense to have two Pythons on the
> system.  One for system scripts and another for users.  System Python
> ('/usr/bin/spython' perhaps) would be locked down and only extensible by
> system packages.  On Debuntu that might mean no /usr/local on sys.path.  It
> would also have a much more limited set of installed packages, i.e. only those
> needed to support system functionality.
> 
> /usr/bin/python2 and /usr/bin/python3 then would be user tools, with all the
> goodness they currently have.
> 
> It's never gotten much farther than musings, but protecting the system against
> the weird things people install would be a good thing.  OTOH, this feels a lot
> like virtual environments so maybe there's something useful to be mined there.
> 
> Cheers,
> -Barry
> _______________________________________________
> 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/donald%40stufft.io

I’ve long wished that the OS had it’s own virtual environment. A lot of problems
seems to come from trying to cram the things the OS wants with the things that
the user wants into the same namespace.

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
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

Reply via email to