On Wed, May 20, 2020 at 10:22:43PM +0200, Pascal Schorde wrote:
> This works. Thanks.

Cheers, great to hear it works.

> I actually added the PYTHON_SINGLE_TARGET with python3_6 into my make.conf as
> described in the news you provided to switch early. I think i misunderstood
> the usage of PYTHON_SINGLE_TARGET and PYTHON_TARGET.

See [1] for a full explanation.  Summarised, PYTHON_SINGLE_TARGET  is  used  for
packages built to run on a single implementation of the Python language, whereas
PYTHON_TARGETS is used for specifying a number of  implementation  versions  for
which a package should be built.

Your original problem with gobject-introspection appeared due to the  fact  that
you were attempting to build the package  for  Python  3.6,  as  shown  in  your
PasteBin submission: `PYTHON_SINGLE_TARGET="python3_6 -python3_7 (-python3_8)"`,
but setuptools was  built  with  `PYTHON_TARGETS="python2_7  python3_7  (-pypy3)
-python3_6 (-python3_8)"`, ergo no support for 3.6 (the pkg_resources module  is
part of setuptools).

The  "invalid  EAPI"  message  shown  by  emerge  was  rather  misleading;   the
Python-provided "traceback" showed the real source of the error.

Small addendum: I have never written any Python, and hope I never have  to,  but
it seems like there has been some  debate  amongst  the  community  to  separate
pkg_resources into its own  package  (included  in  the  standard  library),  as
setuptools is rather large.  See  [2]  for  the  original  proposal,  which  was
ultimately rejected.

[1] https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS
[2] https://www.python.org/dev/peps/pep-0365/

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA

Attachment: signature.asc
Description: PGP signature

Reply via email to