Vyos kernel compilation error for pyhton setup

diff -u tools/include/linux/build_bug.h include/linux/build_bug.h
Makefile.config:232: *** Please set ‘PYTHON’ appropriately. Stop.
make[6]: *** [Makefile.perf:229: sub-make] Error 2
make[5]: *** [Makefile:110: install] Error 2
make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 2
make[3]: *** [Makefile:1550: intdeb-pkg] Error 2
make[2]: *** [debian/rules:13: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make: *** [Makefile:1550: bindeb-pkg] Error 2

Your build environment probably lacks the python2 compatibility package which creates the proper symlink.

We recommend building with the VyOS docker container, see Build VyOS — VyOS 1.4.x (sagitta) documentation

Hi ,
How can I resolve the issue , I have entered in docker domain . which python version I have to set . How to check which is running .

Did you do it with the above instruction?

git clone -b current --single-branch https://github.com/vyos/vyos-build
docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash

If yes, all needed packets already in container.