Xtensa-esp32-elf-gdb should not depend on obsolete libpython2.7.so.1.0


libpython2.7.so is not packaged anymore by recent distributions.
xtensa-esp32-elf-gdb should be compiled with python3.X.

Test case :
.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gdb --version
returns the following error :
.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

The arduino ide2 installs
which seems to be ok with python3.X?
Is there a way to tell platformIO to use this version as a workaround?