diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-23 16:22:53 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-23 16:22:53 +0200 |
commit | a657d3d73dfa6868291423373558289fc70cd587 (patch) | |
tree | a8c6d06597edba597ba60969dffe8e8f2952a656 /guide/distutils.html | |
parent | Update the Guide to fb7670e3dbcab670954c050e5cd42ba8133bf140 (diff) | |
download | python-a657d3d73dfa6868291423373558289fc70cd587.tar.gz python-a657d3d73dfa6868291423373558289fc70cd587.tar.bz2 python-a657d3d73dfa6868291423373558289fc70cd587.zip |
Update Guide to b8616ab
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'guide/distutils.html')
-rw-r--r-- | guide/distutils.html | 135 |
1 files changed, 72 insertions, 63 deletions
diff --git a/guide/distutils.html b/guide/distutils.html index 9bba372..12ade7d 100644 --- a/guide/distutils.html +++ b/guide/distutils.html @@ -77,22 +77,26 @@ PEP 517 mode and declare the build system used. The eclass automatically generates a build-time dependency on the packages needed for the build system.</p> <p>The simplest case of ebuild is:</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2022 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> <span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> <span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>setuptools -</span><span class="hll"><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..10<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> -</span><span class="hll"><span class="w"> </span>inherit<span class="w"> </span>distutils-r1 +</span><span class="hll"><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> +</span> +<span class="hll"><span class="w"> </span>inherit<span class="w"> </span>distutils-r1 </span> -<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"Makes working with XML feel like you are working with JSON"</span> -<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"https://github.com/martinblech/xmltodict/ https://pypi.org/project/xmltodict/"</span> -<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"mirror://pypi/</span><span class="si">${</span><span class="nv">PN</span><span class="p">:</span><span class="nv">0</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> +<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"A pure-Python memory-efficient packed representation for bit arrays"</span> +<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"</span> +<span class="s2"> https://engineering.purdue.edu/kak/dist/</span> +<span class="s2"> https://pypi.org/project/BitVector/</span> +<span class="s2"> "</span> +<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"https://engineering.purdue.edu/kak/dist/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> -<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"MIT"</span> +<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"PSF-2"</span> <span class="w"> </span><span class="nv">SLOT</span><span class="o">=</span><span class="s2">"0"</span> -<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"~amd64 ~arm ~arm64 ~x86"</span> +<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"amd64 x86"</span> </pre></div> </div> </section> @@ -188,37 +192,27 @@ maximum compatibility between these two modes, so most of the existing code will work with either. However, the functions specific to the underlying eclass are not compatible — e.g. the dependencies need to be rewritten.</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2022 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 2023-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> -<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> -<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..10<span class="o">}</span><span class="w"> </span><span class="o">)</span> -<span class="w"> </span><span class="nv">PYTHON_REQ_USE</span><span class="o">=</span><span class="s2">"readline"</span> -<span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>setuptools <span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_SINGLE_IMPL</span><span class="o">=</span><span class="m">1</span> -</span> +</span><span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>setuptools +<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">9</span>..12<span class="o">}</span><span class="w"> </span><span class="o">)</span> + <span class="w"> </span>inherit<span class="w"> </span>distutils-r1 -<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"Pythonic layer on top of the ROOT framework's PyROOT bindings"</span> -<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"http://rootpy.org"</span> -<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"mirror://pypi/</span><span class="si">${</span><span class="nv">PN</span><span class="p">:</span><span class="nv">0</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> +<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"A utility to report core memory usage per program"</span> +<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"https://github.com/pixelb/ps_mem"</span> +<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"</span> +<span class="s2"> https://github.com/pixelb/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/archive/refs/tags/v</span><span class="si">${</span><span class="nv">PV</span><span class="si">}</span><span class="s2">.tar.gz</span> +<span class="s2"> -> </span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz</span> +<span class="s2"> "</span> -<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"BSD"</span> +<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"LGPL-2.1"</span> <span class="w"> </span><span class="nv">SLOT</span><span class="o">=</span><span class="s2">"0"</span> -<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"~amd64 ~x86 ~amd64-linux ~x86-linux"</span> - -<span class="w"> </span><span class="nv">RDEPEND</span><span class="o">=</span><span class="s2">"</span> -<span class="s2"> sci-physics/root:=[</span><span class="si">${</span><span class="nv">PYTHON_SINGLE_USEDEP</span><span class="si">}</span><span class="s2">]</span> -<span class="s2"> dev-python/root_numpy[</span><span class="si">${</span><span class="nv">PYTHON_SINGLE_USEDEP</span><span class="si">}</span><span class="s2">]</span> -<span class="s2"> </span><span class="k">$(</span>python_gen_cond_dep<span class="w"> </span><span class="s1">'</span> -<span class="s1"> dev-python/matplotlib[${PYTHON_USEDEP}]</span> -<span class="s1"> dev-python/pytables[${PYTHON_USEDEP}]</span> -<span class="s1"> dev-python/termcolor[${PYTHON_USEDEP}]</span> -<span class="s1"> '</span><span class="k">)</span><span class="s2">"</span> - -<span class="w"> </span><span class="nv">DEPEND</span><span class="o">=</span><span class="s2">"</span> -<span class="s2"> sci-physics/root[</span><span class="si">${</span><span class="nv">PYTHON_SINGLE_USEDEP</span><span class="si">}</span><span class="s2">]"</span> +<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"amd64 ~arm64 ppc64 sparc x86"</span> </pre></div> </div> </section> @@ -722,22 +716,22 @@ It can be recognized by <code class="docutils literal notranslate"><span class=" in the extension list. In order to support building documentation, call <code class="docutils literal notranslate"><span class="pre">distutils_enable_sphinx</span></code> and pass the path to the directory containing Sphinx documentation:</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2020 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> -<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> -<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">6</span>,7,8<span class="o">}</span><span class="w"> </span><span class="o">)</span> -<span class="w"> </span><span class="nv">DISTUTILS_USE_SETUPTOOLS</span><span class="o">=</span>rdepend +<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span><span class="o">)</span> +<span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>setuptools -<span class="w"> </span>inherit<span class="w"> </span>distutils-r1 +<span class="w"> </span>inherit<span class="w"> </span>distutils-r1<span class="w"> </span>pypi <span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"Colored stream handler for the logging module"</span> <span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"</span> <span class="s2"> https://pypi.org/project/coloredlogs/</span> <span class="s2"> https://github.com/xolox/python-coloredlogs</span> -<span class="s2"> https://coloredlogs.readthedocs.io/en/latest/"</span> -<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"mirror://pypi/</span><span class="si">${</span><span class="nv">PN</span><span class="p">:</span><span class="nv">0</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> +<span class="s2"> https://coloredlogs.readthedocs.io/en/latest/</span> +<span class="s2"> "</span> <span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"MIT"</span> <span class="w"> </span><span class="nv">SLOT</span><span class="o">=</span><span class="s2">"0"</span> @@ -760,27 +754,39 @@ implementation to build and install HTML documentation.</p> extensions to Sphinx. Those include themes. In order to specify dependencies on the additional packages, pass them as extra arguments to <code class="docutils literal notranslate"><span class="pre">distutils_enable_sphinx</span></code>.</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2020 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> -<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> + +<span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>setuptools +<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> -<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>pypy3<span class="w"> </span>python3_<span class="o">{</span><span class="m">6</span>,7,8<span class="o">}</span><span class="w"> </span><span class="o">)</span> <span class="w"> </span>inherit<span class="w"> </span>distutils-r1 -<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"Correctly inflect words and numbers"</span> -<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"https://github.com/jazzband/inflect"</span> -<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"mirror://pypi/</span><span class="si">${</span><span class="nv">PN</span><span class="p">:</span><span class="nv">0</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> +<span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"A Python package for creating beautiful command line interfaces"</span> +<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"</span> +<span class="s2"> https://palletsprojects.com/p/click/</span> +<span class="s2"> https://github.com/pallets/click/</span> +<span class="s2"> https://pypi.org/project/click/</span> +<span class="s2"> "</span> +<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"</span> +<span class="s2"> https://github.com/pallets/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/archive/</span><span class="si">${</span><span class="nv">PV</span><span class="si">}</span><span class="s2">.tar.gz</span> +<span class="s2"> -> </span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.gh.tar.gz</span> +<span class="s2"> "</span> -<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"MIT"</span> +<span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"BSD"</span> <span class="w"> </span><span class="nv">SLOT</span><span class="o">=</span><span class="s2">"0"</span> -<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~x86"</span> +<span class="w"> </span><span class="nv">KEYWORDS</span><span class="o">=</span><span class="s2">"~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"</span> <span class="hll"><span class="w"> </span>distutils_enable_sphinx<span class="w"> </span>docs<span class="w"> </span><span class="se">\</span> -</span><span class="hll"><span class="w"> </span><span class="s1">'>=dev-python/jaraco-packaging-3.2'</span><span class="w"> </span><span class="se">\</span> -</span><span class="hll"><span class="w"> </span><span class="s1">'>=dev-python/rst-linker-1.9'</span><span class="w"> </span><span class="se">\</span> -</span><span class="hll"><span class="w"> </span>dev-python/alabaster -</span></pre></div> +</span><span class="hll"><span class="w"> </span><span class="s1">'>=dev-python/docutils-0.14'</span><span class="w"> </span><span class="se">\</span> +</span><span class="hll"><span class="w"> </span>dev-python/pallets-sphinx-themes<span class="w"> </span><span class="se">\</span> +</span><span class="hll"><span class="w"> </span>dev-python/sphinxcontrib-log-cabinet<span class="w"> </span><span class="se">\</span> +</span><span class="hll"><span class="w"> </span>dev-python/sphinx-issues<span class="w"> </span><span class="se">\</span> +</span><span class="hll"><span class="w"> </span>dev-python/sphinx-tabs +</span><span class="w"> </span>distutils_enable_tests<span class="w"> </span>pytest +</pre></div> </div> <p>In this case, the function uses the any-r1 API to request one of the supported implementations to be enabled on <em>all</em> of those @@ -795,17 +801,20 @@ For those packages, the any-r1 API can be omitted entirely and plain dependency on <code class="docutils literal notranslate"><span class="pre">dev-python/sphinx</span></code> is sufficient. In this case, the <code class="docutils literal notranslate"><span class="pre">--no-autodoc</span></code> option can be specified instead of additional packages.</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2020 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> -<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> -<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python2_7<span class="w"> </span>python3_<span class="o">{</span><span class="m">6</span>,7,8<span class="o">}</span><span class="w"> </span><span class="o">)</span> -<span class="w"> </span>inherit<span class="w"> </span>distutils-r1 +<span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span><span class="o">)</span> + +<span class="w"> </span>inherit<span class="w"> </span>distutils-r1<span class="w"> </span>pypi <span class="w"> </span><span class="nv">DESCRIPTION</span><span class="o">=</span><span class="s2">"Python Serial Port extension"</span> -<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"https://github.com/pyserial/pyserial https://pypi.org/project/pyserial/"</span> -<span class="w"> </span><span class="nv">SRC_URI</span><span class="o">=</span><span class="s2">"mirror://pypi/</span><span class="si">${</span><span class="nv">PN</span><span class="p">:</span><span class="nv">0</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">PN</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">P</span><span class="si">}</span><span class="s2">.tar.gz"</span> +<span class="w"> </span><span class="nv">HOMEPAGE</span><span class="o">=</span><span class="s2">"</span> +<span class="s2"> https://github.com/pyserial/pyserial</span> +<span class="s2"> https://pypi.org/project/pyserial/</span> +<span class="s2"> "</span> <span class="w"> </span><span class="nv">LICENSE</span><span class="o">=</span><span class="s2">"PSF-2"</span> <span class="w"> </span><span class="nv">SLOT</span><span class="o">=</span><span class="s2">"0"</span> @@ -870,14 +879,14 @@ on <code class="docutils literal notranslate"><span class="pre">dev-python/setup <p>An example ebuild for a package utilizing autotools as a primary build system alongside a flit-based <code class="docutils literal notranslate"><span class="pre">pyproject.toml</span></code> in the top directory follows:</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2022 Gentoo Authors</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="c1"># Copyright 1999-2024 Gentoo Authors</span> <span class="w"> </span><span class="c1"># Distributed under the terms of the GNU General Public License v2</span> <span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> <span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>flit </span><span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_OPTIONAL</span><span class="o">=</span><span class="m">1</span> -</span><span class="hll"><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..10<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> +</span><span class="hll"><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> </span><span class="hll"> </span><span class="hll"><span class="w"> </span>inherit<span class="w"> </span>distutils-r1 </span> @@ -1057,10 +1066,10 @@ effectively enabling them to be picked up for the test phase and merged in <code class="docutils literal notranslate"><span class="pre">distutils-r1_python_install</span></code>.</p> <p>An example ebuild using a combination of GitHub archive (for tests) and PyPI wheel (for generated .dist-info) follows:</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> <span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>no -</span><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..11<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> +</span><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span>pypy3<span class="w"> </span><span class="o">)</span> <span class="w"> </span>inherit<span class="w"> </span>distutils-r1 @@ -1092,10 +1101,10 @@ phase. This provides a greater number of helpers. However, the installed modules will not be provided in the venv for the test phase.</p> <p>An example ebuild follows:</p> -<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">7</span> +<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> <span class="hll"><span class="w"> </span><span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>no -</span><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>pypy3<span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..11<span class="o">}</span><span class="w"> </span><span class="o">)</span> +</span><span class="w"> </span><span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>pypy3<span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span><span class="o">)</span> <span class="w"> </span>inherit<span class="w"> </span>distutils-r1 @@ -1124,7 +1133,7 @@ ebuild fragment demonstrates using it with Meson:</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nv">EAPI</span><span class="o">=</span><span class="m">8</span> <span class="nv">DISTUTILS_USE_PEP517</span><span class="o">=</span>no -<span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">8</span>..10<span class="o">}</span><span class="w"> </span><span class="o">)</span> +<span class="nv">PYTHON_COMPAT</span><span class="o">=(</span><span class="w"> </span>python3_<span class="o">{</span><span class="m">10</span>..13<span class="o">}</span><span class="w"> </span><span class="o">)</span> inherit<span class="w"> </span>meson<span class="w"> </span>distutils-r1 |