Gentoo Archives: gentoo-user

From: Ramon Fischer <Ramon_Fischer@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ebuild : how to check for python version
Date: Sun, 02 Aug 2020 16:15:24
Message-Id: AM6P191MB02965AC1EF83C4241D3CB14EEF4C0@AM6P191MB0296.EURP191.PROD.OUTLOOK.COM
In Reply to: [gentoo-user] ebuild : how to check for python version by Helmut Jarausch
1 Hi Helmut,
2
3 maybe "python_is_python3"[1] will help? I am still new to creating
4 ebuilds. :)
5
6 -Ramon
7
8 [1]
9 https://devmanual.gentoo.org/eclass-reference/python-utils-r1.eclass/index.html
10
11 On 02/08/2020 16:47, Helmut Jarausch wrote:
12 > Hi,
13 > in an ebuild I have to apply a patch only if this package is installed
14 > for python3.9.
15 > The ebuild should work for PYTHON_COMPAT=( python3_{8,9} )
16 >
17 > How can I check for Pythons version in src_prepare or similar functions.
18 >
19 > Many thanks for a hint,
20 > Helmut
21 >

Replies

Subject Author
Re: [gentoo-user] ebuild : how to check for python version Helmut Jarausch <jarausch@××××××.be>