A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-March/138815.html below:

[Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons

[Python-Dev] Use ptyhon -s as default shbang for system python executables/daemonsBarry Warsaw barry at python.org
Wed Mar 18 17:48:25 CET 2015
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4