diff options
Diffstat (limited to 'guide/porting.html')
-rw-r--r-- | guide/porting.html | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/guide/porting.html b/guide/porting.html index 374a54e..23c8c71 100644 --- a/guide/porting.html +++ b/guide/porting.html @@ -10,9 +10,6 @@ <link rel="stylesheet" type="text/css" href="_static/pygments.css" /> <link rel="stylesheet" type="text/css" href="_static/alabaster.css" /> <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> - <script src="_static/jquery.js"></script> - <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/sphinx_highlight.js"></script> <link rel="index" title="Index" href="genindex.html" /> @@ -325,11 +322,11 @@ are not supposed to link directly to libpython).</p> <p>If you are building programs that need to embed the Python interpreter, new <code class="docutils literal notranslate"><span class="pre">python-X.Y-embed</span></code> pkg-config file and <code class="docutils literal notranslate"><span class="pre">--embed</span></code> parameter are provided for the purpose.</p> -<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>pkg-config --libs python-3.7 +<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>pkg-config<span class="w"> </span>--libs<span class="w"> </span>python-3.7 <span class="go">-lpython3.7m</span> -<span class="gp">$ </span>pkg-config --libs python-3.8 +<span class="gp">$ </span>pkg-config<span class="w"> </span>--libs<span class="w"> </span>python-3.8 -<span class="gp">$ </span>pkg-config --libs python-3.8-embed +<span class="gp">$ </span>pkg-config<span class="w"> </span>--libs<span class="w"> </span>python-3.8-embed <span class="go">-lpython3.8</span> </pre></div> </div> @@ -402,15 +399,15 @@ where it is named <code class="docutils literal notranslate"><span class="pre">T </pre></div> </div> <p>The following dependency string:</p> -<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="w"></span> -<span class="w"> </span><span class="s">"toml"</span><span class="p">,</span><span class="w"></span> -<span class="p">]</span><span class="w"></span> +<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span> +<span class="w"> </span><span class="s">"toml"</span><span class="p">,</span> +<span class="p">]</span> </pre></div> </div> <p>would be replaced by:</p> -<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="w"></span> -<span class="w"> </span><span class="s">"tomli >= 1.2.3; python_version < '3.11'"</span><span class="p">,</span><span class="w"></span> -<span class="p">]</span><span class="w"></span> +<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span> +<span class="w"> </span><span class="s">"tomli >= 1.2.3; python_version < '3.11'"</span><span class="p">,</span> +<span class="p">]</span> </pre></div> </div> </section> @@ -446,10 +443,10 @@ look like the following:</p> </pre></div> </div> <p>In this case, the dependency string becomes more complex:</p> -<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="w"></span> -<span class="w"> </span><span class="s">"tomli >= 1.2.3; python_version >= '3.6' and python_version < '3.11'"</span><span class="p">,</span><span class="w"></span> -<span class="w"> </span><span class="s">"toml; python_version < '3.6'"</span><span class="p">,</span><span class="w"></span> -<span class="p">]</span><span class="w"></span> +<div class="highlight-toml notranslate"><div class="highlight"><pre><span></span><span class="n">dependencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span> +<span class="w"> </span><span class="s">"tomli >= 1.2.3; python_version >= '3.6' and python_version < '3.11'"</span><span class="p">,</span> +<span class="w"> </span><span class="s">"toml; python_version < '3.6'"</span><span class="p">,</span> +<span class="p">]</span> </pre></div> </div> </section> @@ -567,7 +564,7 @@ modules need to be imported and used separately rather than one.</p> ©2020, Michał Górny, license: CC BY 4.0. | - Powered by <a href="http://sphinx-doc.org/">Sphinx 5.3.0</a> + Powered by <a href="http://sphinx-doc.org/">Sphinx 6.1.3</a> & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a> | |