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 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

