@@ -51,7 +51,7 @@ For Python runtime distributors
51
51
-------------------------------
52
52
53
53
* We expect Unix-like software distributions (including systems like macOS and
54
- Cygwin) should install the ``python2`` command into the default path
54
+ Cygwin) to install the ``python2`` command into the default path
55
55
whenever a version of the Python 2 interpreter is installed, and the same
56
56
for ``python3`` and the Python 3 interpreter.
57
57
* When invoked, ``python2`` should run some version of the Python 2
@@ -104,7 +104,7 @@ For Python script publishers
104
104
This makes the user's environment more predictable (possibly resulting
105
105
in fewer issues), and helps avoid disrupting their system.
106
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``,
107
+ environment, shebang lines can be written as ``#! /usr/bin/env python``,
108
108
as this instructs the script to respect the active virtual environment.
109
109
* In cases where the script is expected to be executed outside virtual
110
110
environments, developers will need to be aware of the following
@@ -114,9 +114,9 @@ For Python script publishers
114
114
refers to Python 2. Most of these distros do *not* provide a
115
115
``python2`` command.
116
116
* Some newer Linux distributions will provide a ``python`` command that
117
- refers to Python 3
117
+ refers to Python 3.
118
118
* Some Linux distributions will not provide a ``python`` command at
119
- all by default, but will provide a ``python3`` command by default
119
+ all by default, but will provide a ``python3`` command by default.
120
120
121
121
* When potentially targeting these environments, developers may either
122
122
use a Python package installation tool that rewrites shebang lines for
@@ -148,7 +148,7 @@ These recommendations are the outcome of the relevant python-dev discussions
148
148
in March and July 2011 ([1]_, [2]_), February 2012 ([4]_),
149
149
September 2014 ([6]_), discussion on GitHub in April 2018 ([7]_),
150
150
on python-dev in February 2019 ([8]_), and during the PEP update review
151
- in May 2019 ([10]_).
151
+ in May/June 2019 ([10]_).
152
152
153
153
154
154
History of this PEP
0 commit comments