summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'guide/porting.html')
-rw-r--r--guide/porting.html31
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">&quot;toml&quot;</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">&quot;toml&quot;</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">&quot;tomli &gt;= 1.2.3; python_version &lt; &#39;3.11&#39;&quot;</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">&quot;tomli &gt;= 1.2.3; python_version &lt; &#39;3.11&#39;&quot;</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">&quot;tomli &gt;= 1.2.3; python_version &gt;= &#39;3.6&#39; and python_version &lt; &#39;3.11&#39;&quot;</span><span class="p">,</span><span class="w"></span>
-<span class="w"> </span><span class="s">&quot;toml; python_version &lt; &#39;3.6&#39;&quot;</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">&quot;tomli &gt;= 1.2.3; python_version &gt;= &#39;3.6&#39; and python_version &lt; &#39;3.11&#39;&quot;</span><span class="p">,</span>
+<span class="w"> </span><span class="s">&quot;toml; python_version &lt; &#39;3.6&#39;&quot;</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>
&copy;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>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|