public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ashley Dixon <ash@suugaku.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [SOLVED] gobject-introspection-1.62.0 invalid eapi version
Date: Wed, 20 May 2020 23:17:13 +0100	[thread overview]
Message-ID: <20200520221713.ycq6onx7iwjwlsqw@ad-gentoo-main.Home> (raw)
In-Reply-To: <CA+6OSs5KUZgtqe1BZQrHXMDUt+NozO-u+Qp_ubHC2SvnW-vuPw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2020-05-20 22:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20 16:08 [gentoo-user] gobject-introspection-1.62.0 invalid eapi version Pascal Schorde
2020-05-20 17:31 ` Ashley Dixon
2020-05-20 17:40   ` Pascal Schorde
2020-05-20 17:50     ` Ashley Dixon
2020-05-20 17:56       ` Pascal Schorde
2020-05-20 19:48         ` Ashley Dixon
2020-05-20 20:22           ` Pascal Schorde
2020-05-20 22:17             ` Ashley Dixon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200520221713.ycq6onx7iwjwlsqw@ad-gentoo-main.Home \
    --to=ash@suugaku.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox