вс, 2 авг. 2020 г. в 17:48, Helmut Jarausch <jarau...@skynet.be>: > > 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 should check if 3.9 is installed: if has_version '=dev-lang/python-3.9'; then But for which python version will the package be installed - isn't it another question? (still learning too) -- Best regards, Alex