diff options
| author | Martin Panter <vadmium+py@gmail.com> | 2016-07-29 01:49:37 +0000 |
|---|---|---|
| committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-29 01:49:37 +0000 |
| commit | 6a09315ff098224da138ff708e470ebc1c0ba8ac (patch) | |
| tree | e21713f5da3e25fa00aaf284c51273d2acde2884 /Doc/extending/embedding.rst | |
| parent | 10ea19f69c0bdb2c47aaa29c62dcb1f41825a3dc (diff) | |
| parent | 1050d2d0c7730c6c533246bb2404937739a7775c (diff) | |
| download | cpython-git-6a09315ff098224da138ff708e470ebc1c0ba8ac.tar.gz | |
Issue #26462: Merge code block fixes from 3.5
Diffstat (limited to 'Doc/extending/embedding.rst')
| -rw-r--r-- | Doc/extending/embedding.rst | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 1546b1adcf..ab2f61614a 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -157,7 +157,9 @@ script, such as: c = c + b return c -then the result should be:: +then the result should be: + +.. code-block:: shell-session $ call multiply multiply 3 2 Will compute 3 times 2 @@ -291,16 +293,20 @@ available). This script has several options, of which the following will be directly useful to you: * ``pythonX.Y-config --cflags`` will give you the recommended flags when - compiling:: + compiling: + + .. code-block:: shell-session - $ /opt/bin/python3.4-config --cflags - -I/opt/include/python3.4m -I/opt/include/python3.4m -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes + $ /opt/bin/python3.4-config --cflags + -I/opt/include/python3.4m -I/opt/include/python3.4m -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes * ``pythonX.Y-config --ldflags`` will give you the recommended flags when - linking:: + linking: + + .. code-block:: shell-session - $ /opt/bin/python3.4-config --ldflags - -L/opt/lib/python3.4/config-3.4m -lpthread -ldl -lutil -lm -lpython3.4m -Xlinker -export-dynamic + $ /opt/bin/python3.4-config --ldflags + -L/opt/lib/python3.4/config-3.4m -lpthread -ldl -lutil -lm -lpython3.4m -Xlinker -export-dynamic .. note:: To avoid confusion between several Python installations (and especially |
