Re: [gentoo-user] ebuild : how to check for python version

2020-08-11 Thread Mike Gilbert
On Tue, Aug 11, 2020 at 9:38 AM Helmut Jarausch wrote: > > On 08/11/2020 03:08:16 PM, Mike Gilbert wrote: > > On Sun, Aug 2, 2020 at 10:47 AM Helmut Jarausch > > <_ j_ a_ r_ a_ u_ s_ c_ h_ @_ s_ k_ y_ n_ e_ t_ ._ b_ e> wrote: > > Hi, > > in an ebuild I have to apply a patch only if this

Re: [gentoo-user] ebuild : how to check for python version

2020-08-11 Thread Helmut Jarausch
On 08/11/2020 03:08:16 PM, Mike Gilbert wrote: On Sun, Aug 2, 2020 at 10:47 AM Helmut Jarausch <_j_a_r_a_u_s_c_h_@_s_k_y_n_e_t_._b_e> wrote: Hi, in an ebuild I have to apply a patch only if this package is installed   for python3.9. The ebuild should

Re: [gentoo-user] ebuild : how to check for python version

2020-08-11 Thread Mike Gilbert
On Sun, Aug 2, 2020 at 10:47 AM Helmut Jarausch 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. > >

Re: [gentoo-user] ebuild : how to check for python version

2020-08-03 Thread Alexey Mishustin
пн, 3 авг. 2020 г. в 11:05, Neil Bothwick : > > On Mon, 3 Aug 2020 02:44:43 +0300, Alexey Mishustin wrote: > > > This should check if 3.9 is installed: > > if has_version '=dev-lang/python-3.9'; then > > Shouldn't that be has_version 'dev-lang/python:3.9' to check for any > version of 3.9? Sure!

Re: [gentoo-user] ebuild : how to check for python version

2020-08-03 Thread Neil Bothwick
On Mon, 3 Aug 2020 02:44:43 +0300, Alexey Mishustin wrote: > > 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 > >

Re: [gentoo-user] ebuild : how to check for python version

2020-08-02 Thread Alexey Mishustin
вс, 2 авг. 2020 г. в 17:48, Helmut Jarausch : > > 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. Hi, This

Re: [gentoo-user] ebuild : how to check for python version

2020-08-02 Thread james
On 8/2/20 1:34 PM, Helmut Jarausch wrote: On 08/02/2020 06:15:12 PM, Ramon Fischer wrote: Hi Helmut, maybe "python_is_python3"[1] will help? I am still new to creating ebuilds. :) -Ramon Thanks Ramon for this hint. I need to know which version of Python3 ( Python3.8 or Python3.9) and I

Re: [gentoo-user] ebuild : how to check for python version

2020-08-02 Thread Helmut Jarausch
On 08/02/2020 06:15:12 PM, Ramon Fischer wrote: Hi Helmut, maybe "python_is_python3"[1] will help? I am still new to creating ebuilds. :) -Ramon Thanks Ramon for this hint. I need to know which version of Python3 ( Python3.8 or Python3.9) and I could see how python_is_python3 helps here.

Re: [gentoo-user] ebuild : how to check for python version

2020-08-02 Thread Ramon Fischer
Hi Helmut, maybe "python_is_python3"[1] will help? I am still new to creating ebuilds. :) -Ramon [1] https://devmanual.gentoo.org/eclass-reference/python-utils-r1.eclass/index.html On 02/08/2020 16:47, Helmut Jarausch wrote: Hi, in an ebuild I have to apply a patch only if this package

[gentoo-user] ebuild : how to check for python version

2020-08-02 Thread Helmut Jarausch
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