summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'guide/any.html')
-rw-r--r--guide/any.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/guide/any.html b/guide/any.html
index 41b504b..bafd4b4 100644
--- a/guide/any.html
+++ b/guide/any.html
@@ -1,16 +1,16 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>python-any-r1 — build-time dependency &#8212; Gentoo Python Guide documentation</title>
- <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b3523f8e" />
+ <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=4f649999" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=039e1c02" />
- <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=b3ba4146"></script>
+ <script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=888ff710"></script>
- <script src="_static/sphinx_highlight.js?v=4825356b"></script>
+ <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="python-single-r1 — single-impl packages" href="single.html" />
@@ -32,12 +32,12 @@
<div class="body" role="main">
<section id="python-any-r1-build-time-dependency">
-<h1>python-any-r1 — build-time dependency<a class="headerlink" href="#python-any-r1-build-time-dependency" title="Permalink to this heading">¶</a></h1>
+<h1>python-any-r1 — build-time dependency<a class="headerlink" href="#python-any-r1-build-time-dependency" title="Link to this heading">¶</a></h1>
<p>The <code class="docutils literal notranslate"><span class="pre">python-any-r1</span></code> eclass is used to enable Python support
in packages needing it purely at build time.</p>
<p>Eclass reference: <a class="reference external" href="https://devmanual.gentoo.org/eclass-reference/python-any-r1.eclass/index.html">python-any-r1.eclass(5)</a></p>
<section id="basic-use-for-unconditional-python">
-<h2>Basic use for unconditional Python<a class="headerlink" href="#basic-use-for-unconditional-python" title="Permalink to this heading">¶</a></h2>
+<h2>Basic use for unconditional Python<a class="headerlink" href="#basic-use-for-unconditional-python" title="Link to this heading">¶</a></h2>
<p>The defining feature of this eclass is that it defines a <code class="docutils literal notranslate"><span class="pre">pkg_setup</span></code>
phase. It normally calls <code class="docutils literal notranslate"><span class="pre">python_setup</span></code> function in order to find
a suitable Python interpreter, and set the global environment
@@ -73,9 +73,9 @@ the following:</p>
<p>This ebuild demonstrates the absolute minimum working code. Only
the three highlighted lines are specific to Python eclasses, plus
the implicitly exported <code class="docutils literal notranslate"><span class="pre">pkg_setup</span></code> phase.</p>
-<span class="target" id="index-0"></span><span class="target" id="index-1"></span><span class="target" id="index-2"></span></section>
+</section>
<section id="dependencies">
-<span id="index-3"></span><h2>Dependencies<a class="headerlink" href="#dependencies" title="Permalink to this heading">¶</a></h2>
+<span id="index-3"></span><span id="index-2"></span><span id="index-1"></span><span id="index-0"></span><h2>Dependencies<a class="headerlink" href="#dependencies" title="Link to this heading">¶</a></h2>
<p>When depending on other Python packages, USE dependencies need to be
declared in order to ensure that the dependencies would be built against
the Python implementation used for the package. When Python
@@ -156,7 +156,7 @@ called at most once. In particular, it is invalid to split the above
example into multiple <code class="docutils literal notranslate"><span class="pre">python_gen_any_dep</span></code> calls.</p>
</section>
<section id="conditional-python-use">
-<h2>Conditional Python use<a class="headerlink" href="#conditional-python-use" title="Permalink to this heading">¶</a></h2>
+<h2>Conditional Python use<a class="headerlink" href="#conditional-python-use" title="Link to this heading">¶</a></h2>
<p>In some packages, Python is only necessary with specific USE flag
combinations. This is particularly common when Python is used for
the test suite. In that case, the dependencies and <code class="docutils literal notranslate"><span class="pre">pkg_setup</span></code> call
@@ -201,7 +201,7 @@ need to be wrapped in appropriate USE conditions:</p>
</div>
</section>
<section id="additional-conditional-dependencies">
-<h2>Additional conditional dependencies<a class="headerlink" href="#additional-conditional-dependencies" title="Permalink to this heading">¶</a></h2>
+<h2>Additional conditional dependencies<a class="headerlink" href="#additional-conditional-dependencies" title="Link to this heading">¶</a></h2>
<p>Another possible case is that Python is required unconditionally
but some dependencies are required only conditionally to USE flags.
The simplest way to achieve that is to use <code class="docutils literal notranslate"><span class="pre">${PYTHON_DEPS}</span></code> globally
@@ -241,7 +241,7 @@ a similar condition in <code class="docutils literal notranslate"><span class="p
</div>
</section>
<section id="multiple-sets-of-conditional-dependencies">
-<h2>Multiple sets of conditional dependencies<a class="headerlink" href="#multiple-sets-of-conditional-dependencies" title="Permalink to this heading">¶</a></h2>
+<h2>Multiple sets of conditional dependencies<a class="headerlink" href="#multiple-sets-of-conditional-dependencies" title="Link to this heading">¶</a></h2>
<p>The hardest case for this eclass is to declare multiple Python
dependencies conditional to different USE flags. While there are
multiple possible ways of doing that, the least error-prone is to move
@@ -376,7 +376,7 @@ USE conditional blocks inside <code class="docutils literal notranslate"><span c
&copy;2020, Michał Górny, license: CC BY 4.0.
|
- Powered by <a href="http://sphinx-doc.org/">Sphinx 7.1.2</a>
+ Powered by <a href="http://sphinx-doc.org/">Sphinx 7.2.6</a>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.13</a>
|