From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ebuild : how to check for python version
Date: Tue, 11 Aug 2020 09:08:16 -0400 [thread overview]
Message-ID: <CAJ0EP43VrUxixqKAKA3qMOKBnGLiMj31KMetVqyoH_-v+oo1oA@mail.gmail.com> (raw)
In-Reply-To: <3N72GZ77.5GQLEHKR.MQE4Q2EH@4TY2KWZJ.LFRWJOCL.NKJKNN4X>
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
On Sun, Aug 2, 2020 at 10:47 AM Helmut Jarausch <jarausch@skynet.be> wrote:
> Hi,
> in an ebuild I have to apply a patch only if this package is installed
> for python3.9.
> The ebuild should work for PYTHON_COMPAT=( python3_{8,9} )
>
> How can I check for Pythons version in src_prepare or similar functions.
>
> Many thanks for a hint,
> Helmut
>
> I would suggest creating a patch that can be applied unconditionally
instead.
[-- Attachment #2: Type: text/html, Size: 766 bytes --]
next prev parent reply other threads:[~2020-08-11 13:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-02 14:47 [gentoo-user] ebuild : how to check for python version Helmut Jarausch
2020-08-02 16:15 ` Ramon Fischer
2020-08-02 17:34 ` Helmut Jarausch
2020-08-02 20:13 ` james
2020-08-02 23:44 ` Alexey Mishustin
2020-08-03 8:05 ` Neil Bothwick
2020-08-03 9:57 ` Alexey Mishustin
2020-08-11 13:08 ` Mike Gilbert [this message]
2020-08-11 13:38 ` Helmut Jarausch
2020-08-11 14:35 ` Mike Gilbert
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=CAJ0EP43VrUxixqKAKA3qMOKBnGLiMj31KMetVqyoH_-v+oo1oA@mail.gmail.com \
--to=floppym@gentoo.org \
--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