8000 Remove "preferred" shebang line wording · python/peps@4b20f8c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b20f8c

Browse files
authored
Remove "preferred" shebang line wording
1 parent fee50a4 commit 4b20f8c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pep-0394.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,9 @@ For Python script publishers
103103
* Encourage your end users to use a virtual environment.
104104
This makes the user's environment more predictable (possibly resulting
105105
in fewer issues), and helps avoid disrupting their system.
106-
* In shebang lines, the preferred spelling is ``/usr/bin/env python``,
106+
* For scripts that are only expected to be run in an activated virtual
107+
environment, shebang lines can be written as ``/usr/bin/env python``,
107108
as this instructs the script to respect the active virtual environment.
108-
* For Python 3 only scripts that do not support being executed on Python
109-
2 at all, it is recommended to instead use ``python3`` and
110-
``/usr/bin/env python3``, as these will never invoke Python 2, and are
111-
expected to work for both Python 3 virtual environments and Python 3
112-
system installations
113-
* For Python 2 only scripts that do not support being executed on Python
114-
3 at all, it is recommended to instead use ``python2`` and
115-
``/usr/bin/env python2``, as these will never invoke Python 3, and are
116-
expected to work for Python 2 virtual environments and at least some
117-
Python 2 system installations.
118109
* In cases where the script is expected to be executed outside virtual
119110
environments, developers will need to be aware of the following
120111
discrepancies across platforms and installation methods:

0 commit comments

Comments
 (0)
0