[Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons
Donald Stufft
donald at stufft.io
Wed Mar 18 22:51:20 CET 2015
> On Mar 18, 2015, at 12:48 PM, Barry Warsaw <barry at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150318/6ded5b92/attachment.sig>
More information about the Python-Dev
mailing list