diff options
author | Ned Deily <nad@acm.org> | 2013-06-24 14:23:35 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2013-06-24 14:23:35 -0700 |
commit | 10503aef473cc45ad074a57f858bd41da7cfef52 (patch) | |
tree | 8e49b7b9dd1d2464893a237b44c61fd8ea9a2497 /Doc | |
parent | 520b8cbffe53b7c3fcc66a9afe86ec80c63dcbfe (diff) | |
parent | 0d47afd7e861de6f8701be27da4b04922d599447 (diff) | |
download | cpython-10503aef473cc45ad074a57f858bd41da7cfef52.tar.gz |
Issue #18164: merge from 3.3
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/extending/embedding.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 3754380af8..6cb686ab09 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -307,11 +307,13 @@ examine Python's :file:`Makefile` (use :func:`sysconfig.get_makefile_filename` to find its location) and compilation options. In this case, the :mod:`sysconfig` module is a useful tool to programmatically extract the configuration values that you will want to -combine together: +combine together. For example: .. code-block:: python >>> import sysconfig + >>> sysconfig.get_config_var('LIBS') + '-lpthread -ldl -lutil' >>> sysconfig.get_config_var('LINKFORSHARED') '-Xlinker -export-dynamic' |