Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46a9d62

Browse files
committed
Merge 3.2
2 parents 9e3e70b + eb933de commit 46a9d62

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

Doc/using/unix.rst

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. highlightlang:: none
1+
.. highlightlang:: sh
22

33
.. _using-on-unix:
44

@@ -55,8 +55,8 @@ On FreeBSD and OpenBSD
5555
On OpenSolaris
5656
--------------
5757

58-
To install the newest Python versions on OpenSolaris, install blastwave
59-
(http://www.blastwave.org/howto.html) and type "pkg_get -i python" at the
58+
To install the newest Python versions on OpenSolaris, install `blastwave
59+
<http://www.blastwave.org/howto.html>`_ and type ``pkg_get -i python`` at the
6060
prompt.
6161

6262

@@ -65,22 +65,23 @@ Building Python
6565

6666
If you want to compile CPython yourself, first thing you should do is get the
6767
`source <http://python.org/download/source/>`_. You can download either the
68-
latest release's source or just grab a fresh `checkout
69-
<http://docs.python.org/devguide/setup#checking-out-the-code>`_.
68+
latest release's source or just grab a fresh `clone
69+
<http://docs.python.org/devguide/setup#getting-the-source-code>`_. (If you want
70+
to contribute patches, you will need a clone.)
7071

71-
The build process consists the usual ::
72+
The build process consists in the usual ::
7273

7374
./configure
7475
make
7576
make install
7677

7778
invocations. Configuration options and caveats for specific Unix platforms are
78-
extensively documented in the :file:`README` file in the root of the Python
79+
extensively documented in the :source:`README` file in the root of the Python
7980
source tree.
8081

8182
.. warning::
8283

83-
``make install`` can overwrite or masquerade the :file:`python` binary.
84+
``make install`` can overwrite or masquerade the :file:`python3` binary.
8485
``make altinstall`` is therefore recommended instead of ``make install``
8586
since it only installs :file:`{exec_prefix}/bin/python{version}`.
8687

@@ -98,7 +99,7 @@ For example, on most Linux systems, the default for both is :file:`/usr`.
9899
+-----------------------------------------------+------------------------------------------+
99100
| File/directory | Meaning |
100101
+===============================================+==========================================+
101-
| :file:`{exec_prefix}/bin/python` | Recommended location of the interpreter. |
102+
| :file:`{exec_prefix}/bin/python3` | Recommended location of the interpreter. |
102103
+-----------------------------------------------+------------------------------------------+
103104
| :file:`{prefix}/lib/python{version}`, | Recommended locations of the directories |
104105
| :file:`{exec_prefix}/lib/python{version}` | containing the standard modules. |
@@ -108,10 +109,6 @@ For example, on most Linux systems, the default for both is :file:`/usr`.
108109
| | developing Python extensions and |
109110
| | embedding the interpreter. |
110111
+-----------------------------------------------+------------------------------------------+
111-
| :file:`~/.pythonrc.py` | User-specific initialization file loaded |
112-
| | by the user module; not used by default |
113-
| | or by most applications. |
114-
+-----------------------------------------------+------------------------------------------+
115112

116113

117114
Miscellaneous
@@ -125,11 +122,11 @@ e.g. with ::
125122
and put an appropriate Shebang line at the top of the script. A good choice is
126123
usually ::
127124

128-
#!/usr/bin/env python
125+
#!/usr/bin/env python3
129126

130127
which searches for the Python interpreter in the whole :envvar:`PATH`. However,
131128
some Unices may not have the :program:`env` command, so you may need to hardcode
132-
``/usr/bin/python`` as the interpreter path.
129+
``/usr/bin/python3`` as the interpreter path.
133130

134131
To use shell commands in your Python scripts, look at the :mod:`subprocess` module.
135132

0 commit comments

Comments
 (0)