Browse Source

Remove most mentions of python_is_python3

Signed-off-by: Michał Górny <mgorny@gentoo.org>
master
Michał Górny 3 months ago
parent
commit
703983da0d
No known key found for this signature in database GPG Key ID: 639ADAE2329E240E
  1. 12
      expert-multi.rst
  2. 7
      helper.rst

12
expert-multi.rst

@ -25,11 +25,9 @@ or you can use ``REQUIRED_USE`` to enforce at least one interpreter
having the requested feature.
Skipping specific tasks can be done via investigating ``${EPYTHON}``.
As a shorthand, ``python_is_python3`` can be used to determine whether
it references to an implementation of Python 3 or not. If USE flags
are involved, you will probably also need to use ``python_gen_cond_dep``
with additional parameters restricting dependencies to available
targets.
If USE flags are involved, you will probably also need to use
``python_gen_cond_dep`` with additional parameters restricting
dependencies to available targets.
.. code-block:: bash
:emphasize-lines: 37-43,49
@ -188,10 +186,6 @@ targets.
src_configure() {
configuration() {
if ! python_is_python3; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
fi
local myconf=(
"${EPYTHON}"
"${S}"/configure.py

7
helper.rst

@ -194,7 +194,6 @@ to them can be passed to the function::
.. index:: python_get_CFLAGS
.. index:: python_get_LIBS
.. index:: python_get_PYTHON_CONFIG
.. index:: python_is_python3
Querying the implementation information
=======================================
@ -229,12 +228,6 @@ The following getters are provided only for CPython targets:
- ``python_get_PYTHON_CONFIG`` that outputs the absolute path
to the ``python-config`` executable.
EAPIs prior to 8 provided the following boolean helper that must not
be used in EAPI 8 or newer:
- ``python_is_python3`` that returns true (0) if the current interpreter
implements a variant of Python 3 (i.e. always).
Note that all paths provided by getters include the offset-prefix
(``${EPREFIX}``) already and they are not suitable to passing
to ``*into`` helpers. If you need to install something, use `install

Loading…
Cancel
Save