How to add dependency to python binary

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Wed, 22 May 2024 11:06:51 UTC
Dear all,

I need some help on how to get the python binary and not the python32 
binary installed as a runtime dependency.
I tried to use:
USES= python:run

but that only installs the python39 package which only installed the 
python30 binary.

If I add:
RUN_DEPENDS= python>=3.9:lang/python

to get the meta package for python installed, which adds the symlink 
from python -> python39 I get an error message while building the package:

====> Running Q/A tests (stage-qa)
Error: lang/python should not be depended upon. Instead, use USES=python:xy with a specific version.
*** Error code 1


What is the recommended why to add python as a runtime dependency that the python binary is available?

Thanks a lot
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook