component/python-2.7, component/python3: fix readline termcap library detection.

2 jobs for feat/firefox-115
Status Job ID Name Coverage
  External
failed ERP5.StandaloneDeploymentScriptTest-Debian.Buster.Master

failed Wendelin.StandaloneDeploymentScriptTest-Debian.Buster.Master